From: Brad Hilton Date: 2004-03-30T04:02:54+09:00 Subject: calling break in proc Hello, It looks like a recent change has been introduced to the 1.8 branch in cvs and also to cvs HEAD that causes the following code to break: ---------------------------------- hash = { 1 => 'a', 2 => 'b' } callback = proc { break } hash.each(&callback) ==> LocalJumpError: break from proc-closure However, the following does still work: hash.each { break } ---------------------------------- The code works with ruby 1.8.1, but not with 1.8-cvs or 1.9. Is this change intentional? If so, can someone recommend a better way to exit early from a Proc object? The catch/throw approach doesn't feel very natural. Thanks, Brad