helo,

an advanced question:

is it possible to store a lit-word value inside a word?

so far this seems impossible (including in view 1.2.10)

>> a: to-lit-word 'r
== 'r
>> probe a
== r
>> type? a
== word!


so far I'm only able to store lit-word values within a BLOCK... ex:
>> a: append [] to-lit-word 'r
== ['r]


it seems to work with set-word types (in view v1.2.10 and probaly in core
2.5.6)...
>> a: to-set-word 'r
== r:
>> probe a
== r:
>> type? a
== set-word!

be carefull, older version of rebol will give you an error with the above
set-word! examples... that is because the newer versions evaluate word values
less aggressively.  The older core complains that "r needs a value" whenever you
reference the word a  .

any ideas are welcome

-MAx

-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to