You can do even such 'confusing' things :-)

>> ctx1: make object! [value: 10]
>> ctx2: make object! [value: 20]
>> ctx3: make object! [value: 30]
>> blk: copy []
== []
>> repeat n 3 [append blk in get to-word join 'ctx n 'value]
== [value value value]
>> blk
== [value value value]
>> reduce blk
== [10 20 30]
>>

regards,

Cyphre

----- Original Message ----- 
From: "Gregg Irwin" <[EMAIL PROTECTED]>
To: "Cavva" <[EMAIL PROTECTED]>
Sent: Friday, February 17, 2006 5:52 PM
Subject: [REBOL] Re: dictionaries


> 
> Hi Cavva,
> 
> C> But, if I want to use different word defined in different context,
> C> i must write something like:
> 
> C> print bind [a] ctx1
> C> print bind [b] ctx2
> C> print bind [c] ctx3
> 
> C> Am I wrong?
> 
> You can use path notation
> 
>     print [ctx1/a ctx2/b ctx3/c]
> 
> You can also use IN to get a word bound to a context; and gurus do all
> kinds of tricky stuff when it comes to binding. REBOL has very few
> limits on how you can make things work.
> 
> -- Gregg                         
> 
> -- 
> To unsubscribe from the list, just send an email to 
> lists at rebol.com with unsubscribe as the subject.
> 
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to