[Ironruby-core] MRI 1.8.6 bug - exit is ignored if ensure clause throws exception which is caught by outer rescue
Shri Borde
Shri.Borde at microsoft.com
Mon Jan 12 15:32:23 EST 2009
The following code snippet does print "after foo" when using MRI 1.8.6 on Windows Vista, showing that exit is ignored. Any thoughts on whether this is by design, a known bug, or a new issue? If it's the latter, should I open a bug for it?
def foo
begin
begin
begin
exit
rescue
puts "We never reach here"
end
ensure
raise "exception from ensure"
end
rescue
puts "We do reach here, which is unexpected"
end
end
foo
print "after foo"
Thanks,
Shri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090112/b4ad4e0d/attachment.html>
More information about the Ironruby-core
mailing list