From: Ross Bamford Date: 2006-01-03T18:42:57+09:00 Subject: Re: Implicit block parameter? On Mon, 02 Jan 2006 22:54:43 -0000, Dominik Bathon wrote: > On Mon, 02 Jan 2006 21:32:57 +0100, Ross Bamford > wrote: > >> Hi, >> >> Probably this has been considered before, but I'll ask anyway. > > I have also proposed this in October: > > http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/162588 > > And it seems to have been proposed before. > > I have actually implemented it for ruby 1.9 lately (it should work > similar for 1.8). It's just a small patch for eval.c: > > ... [snipped patch] ... Wicked :) I can confirm that seems to work in 1.8 (though I had to make one change manually because the source is slightly different of course). I guessed it'd be something that would be reasonably easy (when you know how ;)) from the C side. FWIW +1 for inclusion in a future Ruby. Cheers, -- Ross Bamford - rosco@roscopeco.remove.co.uk