Type | Issue | Status | tested | Date | 4-Nov-2009 20:45 |
---|---|---|---|---|---|
Version | alpha 94 | Category | Syntax | Submitted by | meijeru |
Platform | All | Severity | minor | Priority | normal |
Summary | Different treatment of < > in refinements vs. words |
---|---|
Description |
Further to #1302, please note the examples. The ones for > are similar (but not exactly equal). Wouldn't it be better to decree: no <=> in any-word! literals except a limited list, viz. the ones needed as operators (you can reserve a few for future extensions). |
Example code |
>> type? quote a< ** Script error: < is missing its value2 argument >> type? quote /a< == refinement! >> type? quote < == word! >> type? quote /< ** Script error: < is missing its value2 argument |
Assigned to | n/a | Fixed in | alpha 97 | Last Update | 7-Feb-2010 21:57 |
---|
Comments | |
---|---|
(0001978)
Carl 6-Feb-2010 17:43 |
See http://www.rebol.net/r3blogs/0305.html
Note that because word is allowed, we allow /word, which also means / is allowed so also / |
(0001999)
BrianH 7-Feb-2010 21:56 |
Note: The special-case words that have < or > in them can't be used directly in literal refinement syntax, but can be converted to refinements (that won't load properly) using TO-REFINEMENT.
>> to-refinement quote <> == /<> >> type? quote /<> ** Syntax error: invalid "refine" -- "/<" ** Near: (line 1) to-refinement quote /<> The special case of words containing only the / character (perhaps repeated) are always interpreted as a word! when loaded, not a refinement, but can be converted to refinements (that won't be interpreted as being refinements by LOAD) using TO-REFINEMENT. >> to-refinement quote / == // >> to-refinement quote // == /// >> to-refinement quote /// == //// >> type? quote /// == word! >> type? quote //////// == word! |
Date | User | Field | Action | Change |
---|---|---|---|---|
7-Feb-2010 21:59 | BrianH | Comment : 0001999 | Modified | - |
7-Feb-2010 21:57 | BrianH | Status | Modified | built => tested |
7-Feb-2010 21:56 | BrianH | Comment : 0001999 | Added | - |
6-Feb-2010 19:24 | Carl | Fixedin | Modified | => alpha 97 |
6-Feb-2010 19:24 | Carl | Status | Modified | reviewed => built |
6-Feb-2010 19:19 | Carl | Comment : 0001978 | Modified | - |
6-Feb-2010 19:18 | Carl | Comment : 0001978 | Modified | - |
6-Feb-2010 19:18 | Carl | Comment : 0001978 | Modified | - |
6-Feb-2010 17:43 | Carl | Comment : 0001978 | Added | - |
24-Nov-2009 04:39 | carl | Description | Modified | - |
24-Nov-2009 04:39 | carl | Code | Modified | - |
24-Nov-2009 04:39 | carl | Status | Modified | submitted => reviewed |
4-Nov-2009 20:45 | meijeru | Ticket | Added | - |