Use 'copy on series to resolve that issue.

Paul Tretter

--------------------------------------------------
From: "Carlos Lorenz" <[email protected]>
Sent: Monday, April 27, 2009 2:12 PM
To: <[email protected]>
Subject: [REBOL] setting values to blocks - need help

> Hi list,
> 
> Need some help to understand this:
> 
>>> blk: copy []
> == []
> 
>>> for i 1 3 1 [ append/only blk [] ]
> == [ [] [] [] ]
> 
>>> append blk/1 "1"
> == ["1"]
> 
>>> probe blk/1
> ["1"]
> == ["1"]
> 
>>> probe blk
> [["1"] ["1"] ["1"]]
> == [["1"] ["1"] ["1"]]
> 
> How come blk/2 and blk/3 were set to same value of blk/1 ???
> 
> Thanks
> 
> 
> -- 
> Carlos Lorenz
> Unidade Lorenz Ltda
> www.revistaeletronica.com.br
> (11) 4034 1971
> (11) 7100 1540 pessoal
> 
> 
> -- 
> To unsubscribe from the list, just send an email to 
> lists at rebol.com with unsubscribe as the subject.
> 
> 
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to