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 then in USE block

-- 
To unsubscribe from the list, just send an email to rebol-request
at rebol.com with unsubscribe as the subject.

Reply via email to