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

[REBOL] Re: Strange array behavior

From: greggirwin:mindspring at: 21-May-2002 18:19

Hi Geza, You correctly deduced that REBOL is giving you multiple references to the same empty block when it builds the array. What about this as a solution?
>> a: compose/deep array/initial [3 2] [[(copy [])]]
== [[[] []] [[] []] [[] []]]
>> append a/1/2 3
== [3]
>> a
== [[[] [3]] [[] []] [[] []]] --Gregg