[REBOL] Re: [context] How to compose in a local context

2004-04-21 Thread Ashley Trüter
Thanks to all who responded, I finally ended up using bits of each posted solution to derive the following: b: 'a do has [a] compose [set (to-lit-word b) 0] So simple in hind-sight! ;) Regards, Ashley -- To unsubscribe from this list, just send an email to [EMAIL PRO

[REBOL] Re: [context] How to compose in a local context

2004-04-21 Thread Jones, Scott
From: Ashley Trüter Given the following: >> b: 'a == a >> do has [a][set 'a 0] == 0 >> a ** Script Error: a has no value ** Near: a >> do has [a][do compose/deep [set [(b)] 0]] == 0 >> a == 0 How can I prevent 'compose from binding to the global context? Hi, Ashley, I'm not an expert on b

[REBOL] Re: [context] How to compose in a local context

2004-04-21 Thread Ladislav Mecir
Hi Ashley, ... >How can I prevent 'compose from binding to the global context? > > > you can't, because Compose doesn't do any binding. Here is one way, where Has is allowed to do the binding, but I don't know whether this is the one you need: b: 'a do has [a] compose/deep [do

[REBOL] Re: [context] How to compose in a local context

2004-04-21 Thread Gabriele Santilli
Hi Ashley, On Wednesday, April 21, 2004, 4:07:28 PM, you wrote: >>> b: 'a AT> == a >>> do has [a][set 'a 0] AT> == 0 >>> a AT> ** Script Error: a has no value AT> ** Near: a >>> do has [a][do compose/deep [set [(b)] 0]] AT> == 0 >>> a AT> == 0 AT> How can I prevent 'compose from binding to the