[EMAIL PROTECTED] wrote:
> > You were trying to assign a value to a variable that
> > did not exist.
>
> Yes, but that IS the purpose of "set"
No, it is not actually.
First of all, IN OBJ 'WORD will return NONE if 'WORD is not in the
object context. You cannot set the value NONE to anything.
> >> set 'test-word "test words"
> == "test words"
> >> print test-word
> test words
> >>
>
> I have just assigned a value to a variable that previously did not exist.
SET did not create a "variable". SET just set the word 'TEST-WORD
in the global context to the value "TEST WORDS". 'TEST-WORD
already existed in the global context at the time the function SET
was evaluated. It has been added to the global context by the
interpreter when it parsed the word from the input string {set
'test-word "test words"}.
>> 'test-word
== test-word
>> last first system/words
== test-word
HTH,
Gabriele.
--
Gabriele Santilli <[EMAIL PROTECTED]> - Amigan - REBOL Programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/