[REBOL] Re: IDIOMS: setting multiple words
From: joel:neely:fedex at: 10-Oct-2003 7:37
Hi, Elan and all,
Elan wrote:
> Hi Sunanda:
>
>>
>> set [foo bar baz] copy []
>
> You will find that only foo is set set to a block, whereas bar and baz
> are initialized to the value none. This is unlike using
> set [foo bar baz[] 3 ;- (i.e. some non-series value
> where all words will be initialized to the same value.
>
Actually, all of FOO BAR and BAZ will be set to NONE, as the empty list
is the source of *all* values for the three words:
>> set [foo bar baz] copy []
== []
>> foo
== none
>> bar
== none
>> baz
== none
>>
-jn-