On Sat, 19 Aug 2006 08:55:50 +0200, Eric Hodel <drbrain / segment7.net>  
wrote:

> On Aug 18, 2006, at 8:37 PM, Dominik Bathon wrote:
>
>> Hi,
>>
>> I just found the following bug in 1.9:
>>
>> case false
>> when 1
>>   puts 1
>> else
>>   case
>>   when true
>>     puts "expected"
>>   end
>> end
>>
>> should print "expected", but it doesn't

Good idea, but it probably should be NEW_CASE(0, $3) instead of  
NEW_CASE(NULL, $3) for consistency.

And with that change "case NODE_WHEN" can be removed from rb_eval().

Dominik