Hello [EMAIL PROTECTED]!
On 24-Gen-00, you wrote:
A> That approach I tried first of all, until I discovered that
A> REBOL only _shallow_ copies embedded objects.
This made me think: this means that enbedded objects' code is not
bound to the new context! Indeed:
>> object: make object! [
[ value: 1
[ nested-object: make object! [
[ f: func [] [
[ print value
[ ]
[ ]
[ ]
>> obj1: make object []
>> obj2: make object []
>> obj2/value: 2
== 2
>> obj1/nested-object/f
1
>> obj2/nested-object/f
1
which may be not exactly what one expects...
A> All 'AnObject in all three objects are the same and are one.
So let's use your approach, then. :-)
Regards,
Gabriele.
--
o--------------------) .-^-. (----------------------------------o
| Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila |
| GIESSE on IRC \ \-\_/-/ / http://www.amyresource.it/AGI/ |
o--------------------) `-v-' (----------------------------------o