[REBOL] Re: with ?
From: g:santilli:tiscalinet:it at: 4-Dec-2000 13:04
Anton wrote:
> You know how other languages have a statement like this:
>
> with (obj){
> name = "object 1"
> size = 23
> }
>
> which is to access elements of the obj object, without having to
> use a path notation like: obj/name obj/size etc.
> Does rebol have anything like this?
with: func [obj [object!] code [block!]] [
do bind/copy code in obj 'self
]
(untested)
HTH,
Gabriele.
--
Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/