[REBOL] Re: Words escaping from context! help needed!
From: kgozlin:neokartgis:pl at: 11-Feb-2005 13:58
I set them to none, but it does not help, see
unset 'a
unset 'b
object: make object! [
variables: [ a b]
data: [1 2]
executor: func [ program] [
use variables [
a: b: none
set variables data
do program
]
]
]
>>
>> object/executor [ print a + b]
3
>> print [a b]
1 2
>>
still 'a and 'b are in global context
but I want also do such things :
object/valiables: [ x y]
object/data: [3 4]
object/executor [ print x * y]
12
so I can not rely on constatnt variables
function foreach does similar thing
but i have no idea how
thanks for reply
Karol