[REBOL] Re: [parse] Special characters in block parsing
From: rotenca:telvia:it at: 3-Apr-2005 19:44
Arie van Wingerden wrote:
>What I find strange however is that specifying '/ is an invalid lit-word
>but to-lit-word "/" is not.
>This looks like a contradiction to me...
>Any ideas why this works that way (and I am glad it does ;-) ?
The problem is that the loader (load) understands only a subset of Rebol
value. This is a need, because load must assign a different datatype to
the value when the string start with % or < or " or # or is in the form
2-2-2005 o [aa--sdf] and so on.
A word in rebol by itself can have ANY syntax, examples of valid rebol
But load does not understand them. Other examples:
Also a 0 char can be in a word:
mold to-word "^@b" ;== "^@b"
A solution to the problem could be the implementation of the mold construct:
Romano Paolo Tenca