From: Paul Brannan Date: 2003-08-21T01:33:00+09:00 Subject: Re: for/in loop On Thu, Aug 21, 2003 at 01:27:44AM +0900, Hal E. Fulton wrote: > I've heard it suggested that it is largely > pointless, and we should probably just use > 'each' et al. instead. 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) Paul