James Coglan
9/29/2008 10:59:00 AM
[Note: parts of this message were removed to make it a legal post.]
>
> I could have sworn that one of the firm changes in ruby 1.9 was that
> variables defined inside a block would also exist outside the block
No, it's the reverse. Take this:
x = 5
1.upto(10) { |i| x = i }
puts x
ruby1.8 prints "10", ruby1.9 should print "5".