Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Words escaping from context! help needed!

From: kgozlin:neokartgis:pl at: 11-Feb-2005 9:58

Hi list! I think I need some "binding" :-) this script does not work as I want. look : unset 'a ; just for testing unset 'b ; object: make object! [ variables: [ a b] ; this block may change during object lifetime ; so should be always referenced data: [1 2] ; data to set, may change too ; it has to be that way ; below is what i want repair executor: func [ program] [ use variables [ ; <-- i want to variables to be defined only here --> set variables data ; setting variables do program ; executing ] ] ] testing :
>> object/executor [ print a + b]
3
>>
looks fine, but :
>> print [a b]
1 2
>>
ups! variables are in global context please help how to keep them in USE block thanks in advance Karol