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

[REBOL] Re: How do I dynamically modify an object?

From: james:mustard at: 15-Jan-2003 11:50

Umm.. normally I will just do this: fred: make object! [ Name: "Fred" Age: 5000000 ] fred: make fred [ Address: "123 Bedrock Path" ] providing of course you wish to permanently modify fred. Alternatively you could use a function to preserve your base caveman class (maybe you want a Barney?): make_caveman: func [cv_name cv_age][ make object! [ Name: cv_name Age: cv_age ] ] fred: make_caveman "Fred" 5000000 fred: make fred [ Address: "123 Bedrock Path" ] James.