#872: An Instance of Thread is not necessary to be able to reinitialize. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Test Script: {{{ #!ruby $ cat test_thread.rb def assert_raise(a, &block) begin block.call rescue => e p e p a == e.class else p :ng end puts "-----" end t1 = Thread.new { sleep 1 1234 } assert_raise(ThreadError) do t1.instance_eval { initialize { } } end p t1.value }}} Result of Ruby 1.9.1: {{{ $ ruby test_thread.rb #<ThreadError: already initialized thread - test_thread.rb:13> true ----- 1234 }}} Result of MacRuby Trunk: {{{ $ macruby test_thread.rb :ng ----- nil }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/872> MacRuby <http://macruby.org/>