[REBOL] Re: IDIOMS: setting multiple words
From: rebol:techscribe at: 9-Oct-2003 13:57
Hi Sunanda:
>If you are going to use set, you could use a shorter method:
>
> 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.
>Another method you will see around is:
>
> foo: bar: baz: copy []
>
Note that, unlike in Greg's example, here all three words will be set to
one and the same block. I.e. any modifications made to the block baz
will also affect the blocks foo and bar, because they are one and the
same block.