gerry wrote:
<Quote>
Hi,all,
try following:
a: [ 1 2 3 4
5 6 7 8
]
b: c: copy []
foreach [d f] a [append b d append c f]
print b
result: 1 2 3 4 5 6 7 8
not 1 3 5 7
</Quote>
>> b: copy []
== []
>> c: copy []
== []
>> foreach [d f] a [append b d append c f]
== [2 4 6 8]
>> print b
1 3 5 7
>> print c
2 4 6 8
You wrote:
> b: c: copy []
'b is set to the result of ('c is set to the result of a copy of a empty
block).
'b and 'c refer to the same block.
Andrew Martin
Goofing off...
ICQ: 26227169
http://members.xoom.com/AndrewMartin/
-><-