Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] setting values to blocks - need help

From: carlos:lorenz:g:mail at: 27-Apr-2009 16:12

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