On Nov 3, 2006, at 8:54 PM, James Edward Gray II wrote:
> On Nov 3, 2006, at 10:46 PM, SASADA Koichi wrote:
>> eval('a = 1')
>> eval('p a')
>>
>> This causes error (undefined local variable or method `a')
>>
>> b = binding
>> eval('a = 1', b)
>> eval('p a')
>>
>> This also causes error.
>>
>> This should be:
>>
>> b = binding
>> eval('a = 1', b)
>> eval('p a', b)
>
> Will this be "fixed" in YARV at some point, or is this permanent?

I like this change.  In the matz interpreter the ability to access  
local variables via eval makes blocks (and threads and continuations)  
hold onto references for longer than necessary.

-- 
Eric Hodel - drbrain / segment7.net - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com