From: dblack@... Date: 2006-01-03T22:30:05+09:00 Subject: Re: Implicit block parameter? Hi -- On Tue, 3 Jan 2006, Ross Bamford wrote: > 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. You can submit it as an RCR if you wish, at http://www.rcrchive.net. (I'll vote "Strongly opposed", but don't let that stop you :-) David -- David A. Black dblack@wobblini.net "Ruby for Rails", from Manning Publications, coming April 2006! http://www.manning.com/books/black