From: Caleb Clausen Date: 2010-07-19T23:31:50+09:00 Subject: Re: Instance eval in 1.8 and 1.9 On 7/19/10, Brian Candler wrote: > Caleb Clausen wrote: >> On 7/17/10, Gavin Sinclair wrote: >>>> >>>> Your code runs without errors for me with ruby 1.9.1-p376. >>>> >>>> Stefano >>> >>> Thanks for testing it. I should have specified my version, of course: >>> >>> ruby 1.9.2dev (2010-07-02 revision 28524) [i386-cygwin] >> >> It seems like this could be a regression. > > Seconded. The program works OK for me with ruby 1.9.2dev (2009-07-18 > trunk 24186) [i686-linux] Nobu says this is not a bug, and his explanation makes perfect sense to me, now that I understand it. instance_eval passes self as a parameter to the block in 1.8 and 1.9.2 but didn't in 1.9.1. Also, lambda panics if it doesn't receive the expected number of params, whereas proc does not. See ruby-core:31336