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

_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to