Hi,

In message "Re: [ ruby-Bugs-7680 ] a block argument within a block which argument has the same name leaks"
    on Tue, 9 Jan 2007 09:23:01 +0900, Evan Phoenix <evan / fallingsnow.net> writes:

|>   /tmp/s.rb:7: warning: out-of-scope variable - allele
|>   /tmp/s.rb:7: undefined local variable or method `allele' for main:Object (NameError)

|Hrm. So it warns about usage outside the block, but it doesn't allow  
|it to be overridden?

If I understand you correctly, yes.

|I'd think there should have been a warning on  
|line 4 that the 'deeper' allele isn't the same as the shallower one.  

Try -w option to get a warning.  You will get

/tmp/s.rb:4: warning: shadowing outer local variable - allele

							matz.