Hi Romano,

thanks for your help! With Volker's and your help I now understand why 
these things work this way.

Kind regards,
    Arie

Romano Paolo Tenca wrote:

>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 [EMAIL PROTECTED] and so on.
>
>A word in rebol by itself can have ANY syntax, examples of valid rebol 
>words:
>
>   to-word "a%"
>   to-word "3^""
>
>But load does not understand them. Other examples:
>
>    to-word "2-2-1004"
>    to-word "31"
>    to-word "3.5e4"
>    to-word "a/b/c"
>
>and also:
>
>    to-word ":a"
>    to-word "a:"
>    to-word "'a"
>    to-word "/a"
>
>Also a 0 char can be in a word:
>
>    mold to-word "[EMAIL PROTECTED]" ;== "[EMAIL PROTECTED]"
>
>A solution to the problem could be the implementation of the mold construct:
>
>    #[lit-word! "/"]
>
>  
>
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to