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

[REBOL] Re: Refresh LIST data

From: anton:lexicon at: 30-Oct-2002 1:37

Fabrice,
> >2) in "Change data", we are modifying the original block. > > Why ?!?
If we write this code: forum: copy [ ["Elément 1" "Colonne 1"] ... ] this is what happens: 'forum -> [ ["Elément 1" "Colonne 1"] Now after we build the layout, and the list is built, this is the situation: 'forum -> [ ["Elément 1" "Colonne 1"] ... ] ^ | | second second get in lstforum 'subfunc If we reassign 'forum, this is the situation: 'forum -> [ ["Sujet 1" "Date 1"] ... ] [ ["Elément 1" "Colonne 1"] ... ] ^ | | second second get in lstforum 'subfunc The list knows nothing about the change ! The list keeps its own word 'stuff, which points to the original block, but unfortunately that word is kept deep inside the list. Anton.