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

[REBOL] Re: Accessing nested Blocks

From: jthomas:apollo:evo:it at: 5-Nov-2000 13:51

Hello Gabriele On 04-Nov-00, Gabriele Santilli wrote:
>GS Hello Joachim! >GS >GS On 03-Nov-00, you wrote: >GS >GS> is there a way to assign the content of myblock, like a >GS> pointer, to the variable, so that >GS >GS> myvalue: 12 >GS >GS> will change the content in myblock/1/2/3 ? >GS >GS A way to do it might be: >GS >GS>> myblock: [[one [1 2 3]][two [4 5 6]][three [7 8 9]]] >GS == [[one [1 2 3]] [two [4 5 6]] [three [7 8 9]]] >GS>> pointer: at myblock/1/2 3
thanx ... I didn't consider the word AT.... :-/
>GS == [3] >GS>> change pointer 5 >GS == [] >GS>> myblock >GS == [[one [1 2 5]] [two [4 5 6]] [three [7 8 9]]] >GS >GS But the real question is, why do you need to do so? >
could be a more readable way to write accesses to data in little databases.. Regards -- Joachim Thomas - [jthomas--mail--evo--it] - ICQ 18088459 Amiga1260+Amiga4060PPC604 Member of ATO (italian Division) http://bilbo.di.unipi.it/~ato-it & Phoenix Consortium Concerti - Gruppi Musicali & Locali http://concertitalia.supereva.it Virtual PHOTO Gallery http://www.terzomercato.com/free/jt_home Amiga makes IT possible, Mac makes it expensive and Win95 just makes Bill Gates rich... -- Christoph Krakowski