From: SpringFlowers AutumnMoon Date: 2007-10-15T08:19:37+09:00 Subject: Re: Parameter in a block is not local? Pat Maddox wrote: > This seems to me along the same lines as > > a = 1 > if true > a = 10 > end > p a # => 10 > > Which certainly is not surprising or unwelcome. when compared to the following it is surprising: a = 1 p a def foo(a) p a end for i in 1..10 foo(i) end p a ------------------ E:\>ruby test_iterator2.rb 1 1 2 3 4 5 6 7 8 9 10 1 -- Posted via http://www.ruby-forum.com/.