Peter Wood napsal(a):

...snip...
> In my limited understanding, the only constant values in a Rebol script  
> are literals in the source (prior to evaluation). Assuming the #define  
> exists, it would be possible to write:
>
> #define FREEZING-POINT 0
> if temperature < FREEZING-POINT [Print "I must be somewhere cold"]
>
> which would get pre-processed to
>
>  >> if temperature < 0 [Print "I must be somewhere cold"]
> I must be somewhere cold
>
> but not:
>
> FREEZING-POINT: 100
>
> as it would get pre-processed to
>  >> 0: 100
> ** Syntax Error: Invalid time -- 0:
> ** Near: (line 1) 0: 100
>
> Am I correct?
>   
unfortunately not, at least in the case of my INCLUDE function - it 
processes loaded REBOL, not text, so it will not replace a set-word by 
an illegal REBOL value. Moreover, I am not sure, how much needed would 
such a feature be, because it might cause incompatibilities with SDK

Need to think more about it.

-L

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to