From: Gavin Sinclair Date: 2003-11-17T19:52:35+09:00 Subject: Re: Local Variable Scope in Ruby2 On Monday, November 17, 2003, 9:21:15 AM, Harry wrote [snipped]: > So, with the new semantics, how do we do things like ... > a = nil > some_collection.each do |x| > if some_condition > a = ... > break > end > end This works in 1.8 and looks better than the above code: a = (1..10).each do |n| if n > 3 break n end end # a == 4 Gavin