From: Eric Mahurin Date: 2005-09-29T01:16:40+09:00 Subject: Re: creating independent lambdas in loops --- "David A. Black" wrote: > On Thu, 29 Sep 2005, Eric Mahurin wrote: > > > It still seems like there should be a way to control > variable > > locality in blocks better. Making the variable local just > > based on whether the variable already exists in the outer > scope > > doesn't cut it. > > It's never bothered me to view block variable assignment as > assignment to existing variables, but I know I'm in a small > minority > which, among other things, does not include Matz :-) You can > expect > this to change in Ruby 2.0. Any idea what the planned change is going to be? New construct like: localize(:a,:b) {...} Or maybe an incompatible change like making all block arguments local no matter what. It would be nice if all definite changes were put on rcrchive and marked as accepted. And somehow put the potential changes in there too. Or is there another place where this information is held? __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com