That's essentially the way it works, Gabriele.  :-) Yours is a
better, simpler explanation than my was.  

  One extra note, just to state the obvious: the set-word SELF is
first bound into the newly created object context making it refer to
THE SELF of the object before evaluating its assignment.  The stages
of an objects creation are sometimes important. (-:

        -jeff

>  Hello [EMAIL PROTECTED]!
>  On 27-Mag-00, you wrote:
>  d>>> x: make object! [a: 1 b: 2 self: 3] d> == 3 d>>> type? x d> ==
> integer!
>  d> Mystery abounds,
>  Actually,
>  >> obj: make object! [a: 1 b: 2] >> obj/self: 3 == 3 >> probe obj
>  make object! [ a: 1 b: 2 ]
>  I think it's just  that MAKE OBJECT! returns the  value of SELF, so
> if you modify it, you get the modified value as a result.
>  Regards, Gabriele.
> --  Gabriele   Santilli  

Reply via email to