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

[REBOL] How to remove words from objects?

From: luke:marmaladefoo at: 13-Jan-2004 10:21

Dear list I'm trying to dynamically add and remove words from an object. So far I can do the add words as follows:
>> obj: make object! [a: 1 b: 2] >> probe obj
make object! [ a: 1 b: 2 ]
>> obj: make obj [c: 3] >> probe obj
make object! [ a: 1 b: 2 c: 3 ]
now I want to remove c from obj. How do I do that. I know I could dynamically reconstruct it from scratch, but that is not very elegant. There must be a better way to get back to obj being: make object! [a: 1 b: 2] Any ideas? Thanks - Luke __________________________________________ Various gadgets widgets, links and chat __________________________________________<