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

[REBOL] Re: Accessing nested Blocks

From: g:santilli:tiscalinet:it at: 4-Nov-2000 13:51

Hello Joachim! On 03-Nov-00, you wrote: JT> is there a way to assign the content of myblock, like a JT> pointer, to the variable, so that JT> myvalue: 12 JT> will change the content in myblock/1/2/3 ? A way to do it might be:
>> myblock: [[one [1 2 3]][two [4 5 6]][three [7 8 9]]]
== [[one [1 2 3]] [two [4 5 6]] [three [7 8 9]]]
>> pointer: at myblock/1/2 3
== [3]
>> change pointer 5
== []
>> myblock
== [[one [1 2 5]] [two [4 5 6]] [three [7 8 9]]] But the real question is, why do you need to do so? Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/