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

[REBOL] Re: patching an object

From: pwawood:gmai:l at: 10-Jul-2007 19:24

Sunanda I tried this :
>> my-api: make object! [
[ a: 1 [ b: 2 [ f1: func [] [print a + b] [ ]
>> patch: make object! [
[ b: 12 [ f1: func [] [print a - b] [ ]
>> my-api: make my-api patch >> source my-api
my-api: make object! [ a: 1 b: 12 f1: func [][print a - b] ] Seems to do what you want. Cheers Peter On Tuesday, July 10, 2007, at 12:46 am, Sunanda wrote: