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

[REBOL] Re: adding set-words to a context from outside

From: ingo:2b1 at: 12-Oct-2001 17:03

Hi Maxim, you are right, obj_ptr will stay pointing at the initial obj_a, as far as I know, there is no possibility to grow an object (yet?).
>> obj_a: make object! [
[ attrib1: 1 [ ]
>> obj_ptr: obj_a >> obj_a: make obj_a [
[ attrib2: 2 [ ]
>> probe obj_ptr
make object! [ attrib1: 1 ]
>> probe obj_a
make object! [ attrib1: 1 attrib2: 2 ] Ingo