> Hi Anton,
>
> Hmmm.  So why doesn't:
>
>     to-set-word b 1
>
> work then?  What is the difference when you assign "to-set-word b" to
another
> word (c) and then use c?  Why does your method work whereas mine doesn't?
>


look at this code (you can copy it to Rebol):

a: 0
b: 'a
c: to-set-word 'a
reduce [to-set-word 'a 1]
a
reduce [to-set-word b 1]
a
reduce [:c 1]
a
reduce [c 1]
a

Results:
>> a: 0
== 0
>> b: 'a
== a
>> c: to-set-word 'a
== a:
>> reduce [to-set-word 'a 1]
== [a: 1]
>> a
== 0
>> reduce [to-set-word b 1]
== [a: 1]
>> a
== 0
>> reduce [:c 1]
== [a: 1]
>> a
== 0
>> reduce [c 1]
== [1]
>> a
== 1

HTH

Ladislav

Reply via email to