>>>>> "K" == K Kosako <kosako / sofnec.co.jp> writes:

K> In this method, only values are cleared without removing dyna-var objects
K> at the end of rb_yield_0, and used in the next rb_yield_0 call.
K> It is not a good method because the argument "acheck" of rb_yield_0
K> is being referred to to do the decision of yield-call or proc/thread-call.

 One possible solution to this problem is :

  1) at compile time, when ruby create a NODE_EVSTR to store in this node
the dynamic variables known at this time.

  2) at runtime, when ruby find a NODE_EVSTR 
     a) retrieve the name (or id) of the dynamic variable stored in this node
     b) create these dynamics variables if they don't exist

 Is it possible to make this work ?


Guy Decoux