is it possible to access local vars from outside?
to view valus for debugging?

>> f: func [c /local a b] [b: 2 a: 1] 
==  func [c /local a b][b: 2 a: 1]  ;  function!
>> f 1 
==  1  ;  integer!

>> comment "accessing the code-words by position works" 
>> first second :f 
==  b:  ;  set-word!
>> get first second :f 
==  2  ;  integer!

>> comment "but the vars by name not" 
>> first first :f 
==  c  ;  word!
>> comment "[get first first] will crash!"

Volker

Reply via email to