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 <[EMAIL PROTECTED]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to