From: Motohiro KOSAKI Date: 2011-02-16T20:47:10+09:00 Subject: [ruby-core:35261] [Ruby 1.9-Bug#4400][Closed] nested at_exit hooks run in strange order Issue #4400 has been updated by Motohiro KOSAKI. Status changed from Open to Closed % Done changed from 0 to 100 This issue was solved with changeset r30888. Suraj, thank you for reporting this issue. Your contribution to Ruby is greatly appreciated. May Ruby be with you. ---- * eval_jump.c (rb_exec_end_proc): changed at_exit and END proc evaluation order. [Bug #4400] [ruby-core:35237] * eval_jump.c (rb_mark_end_proc): ditto. * test/ruby/test_beginendblock.rb (TestBeginEndBlock#test_nested_at_exit): added a test for nested at_exit. * test/ruby/test_beginendblock.rb (TestBeginEndBlock#test_beginendblock): changed the test to adopt new spec. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/4400 ---------------------------------------- http://redmine.ruby-lang.org