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

[REBOL] How do I dynamically extend an object! instance Re:

From: agem:crosswinds at: 10-Sep-2000 15:51

not read detailed, but: if you have a: block[ key1 "data1" key2 "data2" ] .. you can say a/key1 ; -> "data1" but add new values. which hash it should be fast enough? but beware, if key & data are of same type, it may find a data as a key, giving the next key.. maybe enhancement find/skip 2 ? i use like this to extend a block, it sets new fields from config-default config: from somewhere.. config-default: [file %./unnamed files [] posis []] a: config-default forskip a 2 [if not find config first a [ append config reduce [first a second a]]] ;config updated [bobr--dprc--net] wrote on 9-Sep-2000/23:50:09-4:00