From: Jeremy Kemper Date: 2007-12-20T18:48:25+09:00 Subject: Re: Some Ruby 1.9 loose ends to tie up On 12/17/07, Charles Oliver Nutter wrote: > David Flanagan wrote: > > Matz, > > > > I've got a few lingering questions about Ruby 1.9 and I'm hoping you can > > provide a definitive answer so I can document them definitively: > > > > 1) Will Proc.binding be made to work in 1.9? > > I sure hope not. In my opinion Proc.binding and friends break > encapsulation of a caller's local variables. In the same way that retry > outside of a rescue is dangerous, because it breaks expectations in the > caller about how their arguments and receiver will be evaluated, > proc-as-binding breaks a caller's expectations about the visibility of > local variables. > > There's optimization concerns as well...but I know those are less > convincing. Just added! http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/proc.c?r1=14360&r2=14359 jeremy