[REBOL] Re: Obscure? You be the judge!
From: rotenca:telvia:it at: 16-May-2002 14:25
> The native MAKE PROTO can return even error values. I cannot simulate that
> without RETURN...
> It could be any type value (e.g. error).
I always forget error return (i do not like it).
> Thanks for your analysis.
Thank you for your emulation which made me think to the problem.
> This behaviour is really complicated.
It is hard to emulate, but it seems to me simpler to understand:
1) object is cloned as is (with func block copied)
2) new setword coming from spec added to the object context
(this should mean that Rebol is internally already able to add new words
to an existing context beyond global context)
3) spec block is bound to the expanded context
4) spec block is evaluated and object/self returned