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: compkarori:gmai:l at: 28-Apr-2009 7:15

try append/only copy [] On Tue, Apr 28, 2009 at 7:12 AM, Carlos Lorenz <carlos.lorenz-gmail.com> wrote:
> 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. >
-- Graham Chiu http://www.synapsedirect.com Synapse - the use from anywhere EMR.