Hi,

sorry for butting in...

but if you do:

obj_a: make object! [
    attrib1: 1
]


obj_ptr: obj_a

obj_b: make obj_a [
    attrib2: 2
]

Am I right in saying that obj_ptr still references obj_a which only has one
element?

so is there a way to "grow" an object? cause in some circustances, you
cannot replace all references to an object (especially when code is dynamic
and there is no way to know how many references exist).


-Max

----------------------------------
  Maxim Olivier-Adlhoch
----------------------------------

----- Original Message -----
From: "Ingo Hohmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 12, 2001 5:06 AM
Subject: [REBOL] Re: adding set-words to a context from outside


> Hi Anton,
>
> try
>
> Once upon a time Anton Rolls spoketh thus:
> > Does anyone know how to add
> > words to an object from outside
> > that object?
> >
> > For example, take an empty object o:
> >
> >  o: context []
> >
> >  ; Now some voodoo stuff happens
> >  ; here that adds a word to o
>
> o: make o [a: none]
>
> >  ; and the result...
> >
> >  probe o
> >
> >  make object! [
> >      a: none
> >  ]
>
> But remember, that 'make doesn't create deep copies, so you
> might run into some surprises, if you tried to assign this
> to another word. But setting it back to the same is safe.
>
>
> kind regards,
>
> Ingo
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to