From: "Hal E. Fulton" Date: 2003-02-13T08:27:51+09:00 Subject: Re: Lexical scope and closures ----- Original Message ----- From: "Brian Candler" To: "ruby-talk ML" ; Cc: "ruby-talk ML" Sent: Wednesday, February 12, 2003 5:11 PM Subject: Re: Lexical scope and closures > Matz is thinking of changing the behaviour for a future version of Ruby as > follows: > > (1) block parameters are always locally scoped (so '|x|' in that example > will behave as if the outside 'x' did not exist, although a warning will be > printed because of the re-use of the name; but x will still be 0 after the > iterator has finished) I didn't realize that. So we ARE breaking old code, eh? Hal