Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] holding lit-word! values in a word...

From: moliad:aei:ca at: 16-Oct-2003 0:14

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