[REBOL] Re: Embedded Object and Scope - again...
From: larry:ecotope at: 10-May-2001 17:42
Hi Scott
> "Luke, use The Force," or at least the 'context. I believe that
> 'context may be the solution to your problem.
>
> >> ? context
> USAGE:
> CONTEXT blk
>
> DESCRIPTION:
> Defines a unique (underived) object.
> CONTEXT is a function value.
>
> ARGUMENTS:
> blk -- Object variables and values. (Type: block)
>
Good to keep in mind that CONTEXT is just a shortcut for MAKE OBJECT!
context: func [
"Defines a unique (underived) object."
blk [block!] "Object variables and values."
][
make object! blk
]
Of course, your example works just fine with CONTEXT replaced with MAKE
OBJECT!
-Larry