[REBOL] Re: Object lesson, please?
From: g:santilli:tiscalinet:it at: 24-Oct-2003 11:20
Hi SunandaDH,
On Friday, October 24, 2003, 10:34:39 AM, you wrote:
Sac> Thanks, Gabriele. The one thing I hadn't thought of trying was context -- the
Sac> word had slipped from my mental context.
It is just a shortcut for MAKE OBJECT!... What I wanted to point
out was that you could just use MAKE to update your object.
I.e. (QAD):
update-object: func [obj template] [
obj: make template obj
foreach word next first obj [
if all [object? get in obj word in template word object? get in template word] [
set in obj word update-object get in obj word get in template word
]
]
obj
]
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/