[MacRuby] #904: Can't autoload with MultiThread.
#904: Can't autoload with MultiThread. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Test Script: {{{ #!ruby #$ cat t1.rb FILE = "test-tmp-0001.rb" open(FILE, "w") {|f| f.puts <<END class TEST def self.ok :ok end end END } autoload :TEST, "./#{FILE}" t1 = Thread.new { TEST.ok } t2 = Thread.new { TEST.ok } p t1.join.value p t2.join.value }}} Result: {{{ $ /usr/bin/ruby -v t1.rb ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] :ok :ok $ ruby -v t1.rb ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0] t1.rb:15: warning: loading in progress, circular require considered harmful - /Users/watson/tmp/test-tmp-0001.rb from t1.rb:15:in `block in <main>' :ok :ok $ macruby -v t1.rb MacRuby 0.7 (ruby 1.9.2) [universal-darwin10.0, x86_64] :ok /Users/watson/tmp/t1.rb:3:in `<main>': uninitialized constant TEST (NameError) }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/904> MacRuby <http://macruby.org/>
#904: Can't autoload with MultiThread. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby Later Component: MacRuby | Keywords: #reduction ----------------------------------+----------------------------------------- Changes (by mattaimonetti@…): * keywords: => #reduction * milestone: => MacRuby Later -- Ticket URL: <http://www.macruby.org/trac/ticket/904#comment:1> MacRuby <http://macruby.org/>
#904: Can't autoload with MultiThread. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: #reduction ----------------------------------+----------------------------------------- Changes (by mattaimonetti@…): * milestone: MacRuby Later => -- Ticket URL: <http://www.macruby.org/trac/ticket/904#comment:2> MacRuby <http://macruby.org/>
#904: Can't autoload with MultiThread. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby Later Component: MacRuby | Keywords: #reduction ----------------------------------+----------------------------------------- Changes (by lsansonetti@…): * milestone: => MacRuby Later -- Ticket URL: <http://www.macruby.org/trac/ticket/904#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby