From: matz@... (Yukihiro Matsumoto) Date: 2003-08-21T01:56:44+09:00 Subject: Re: for/in loop Hi, In message "Re: for/in loop" on 03/08/21, Paul Brannan writes: |It's definitely not pointless: | | for i in [1, 2, 3] | x = i | end | p x #=> 3 | | [1, 2, 3].each do | y = i | end | p y #=> test.rb:9: undefined local variable or method `y' for # (NameError) Yes, but it would work, when new scoping rule is introduced. matz.