Hi Andrew, 
you wrote:
>
>>> oz: make object! [
>    zz: use [zz] [
>        func [/set set_zz] [either set [zz: set_zz] [zz]]
>        ]
>    ]

I like your creative application of my suggestion to use 'use contexts in
order ot hide variables. Well thought out.

Remember, however, Gabriele's and Ladislav's warning that as of REBOL 2.2
the garbage collector causes the extension mechanism for words defined
local to a use context to malfunction.

After running

>> oz/zz/set 23
== 23
>> recycle

when I tried to access oz/zz REBOL crashed! 

Hopefully, this will be fixed soon.

As for your idea to to generalize the approach by implementing some kind of
setget mechanims ... need to think about it (and a few other things as
well. You might even beat me to it, without trying too hard ;-).


Elan

Reply via email to