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

[REBOL] Re: setting values to blocks - need help

From: tim-johnsons::web::com at: 27-Apr-2009 17:45

On Monday 27 April 2009, Carlos Lorenz wrote:
> How come blk/2 and blk/3 were set to same value of blk/1 ???
Under the hood: they are the same 'pointer' - i.e. referencing the same address in memory try 'array/initial - returns multiple memory references
>> blk: array/initial 3 []
== [[] [] []]
>> append blk/1 "1"
== ["1"]
>> blk
== [["1"] [] []] ;; HTH ;; tim