From: "Mauricio Fernández" Date: 2004-05-26T00:47:11+09:00 Subject: Re: ruby-dev summary 23459-23562 On Tue, May 25, 2004 at 11:55:00PM +0900, David Alan Black wrote: > > * The name space of local variables and one of block parameters are > > exclusive. e.g. > > > > i = 1 > > iter {|i| # causes error > > .... > > } > > I thought the whole problem was that people wanted to be able to use > the same names in blocks without a clash. The argument was always: See http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/52462, regarding shadowing. > what if you cut-and-paste a block from somewhere, or change a local > variable name accidentally to the same as a block variable name? (My > answer was always: there's no problem, so let's leave it the way it is > now, but that isn't going to happen :-) A silent error is much worse than a parse-time one. -- Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Netscape is not a newsreader, and probably never shall be. -- Tom Christiansen