WOW! my brain just clicked .
now all of a sudden all those lines of code using get-word notation when it seems its not specifically essential... make sense! I've use get-word notation before, but often I see parser code or advanced vid stuff and you get stuff like: if :var [set :var new new/var: to-word :var var: none] (taken from layout function) and I'd say, why all those get-words... now it seems its time to look at those lines again... :-) rebol, the never-ending (learning) story. -MAx --- "You can either be part of the problem or part of the solution, but in the end, being part of the problem is much more fun." > -----Original Message----- > From: Elan [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 16, 2003 12:44 AM > To: [EMAIL PROTECTED] > Subject: [REBOL] Re: holding lit-word! values in a word... > > > Hi Maxim. > > >> a: to-lit-word 'r > == 'r > >> type? :a > == lit-word! > >> type? get 'a > == lit-word! > > Using the colon prefis or the get function you get the > correct result. > Notice the difference: > > >> type? a > == word! > > Or: > >> a: 'r > == r > >> type? :a > == word! > > > Hope this helps. > Elan > > Maxim Olivier-Adlhoch wrote: > > >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. > > -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
