[MacRuby] #356: autoload is not working
#356: autoload is not working ------------------------+--------------------------------------------------- Reporter: dev@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: ------------------------+--------------------------------------------------- {{{ $ macruby -e 'autoload :YAML, "yaml"; p YAML' core:in `const_missing:': uninitialized constant YAML (NameError) from -e:1:in `<main>' }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/356> MacRuby <http://macruby.org/>
#356: autoload is not working ------------------------+--------------------------------------------------- Reporter: dev@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.5 Component: MacRuby | Resolution: fixed Keywords: | ------------------------+--------------------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed Old description:
{{{ $ macruby -e 'autoload :YAML, "yaml"; p YAML' core:in `const_missing:': uninitialized constant YAML (NameError) from -e:1:in `<main>' }}}
New description: {{{ $ macruby -e 'autoload :YAML, "yaml"; p YAML' core:in `const_missing:': uninitialized constant YAML (NameError) from -e:1:in `<main>' }}} -- Comment: Should be working in r2790. {{{ $ macruby -e 'autoload :YAML, "yaml"; p YAML' YAML }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/356#comment:1> MacRuby <http://macruby.org/>
#356: autoload is not working ------------------------+--------------------------------------------------- Reporter: dev@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.5 Component: MacRuby | Resolution: fixed Keywords: | ------------------------+--------------------------------------------------- Comment(by jazzbox@…): Thanks for implementing autoload! There is still remaining a problem with modules and classes: {{{ $ cat foo.rb module Bar class Foo end end $ macruby -e 'module Bar; autoload :Foo, "foo.rb"; class Baz; p Foo; end; end' core:in `const_missing:': uninitialized constant Bar::Baz::Foo (NameError) from -e:1:in `<main>' $ ruby -e 'module Bar; autoload :Foo, "foo.rb"; class Baz; p Foo; end; end' Bar::Foo $ ruby1.9 -e 'module Bar; autoload :Foo, "foo.rb"; class Baz; p Foo; end; end' Bar::Foo $ macruby -e 'module Bar; require "foo.rb"; class Baz; p Foo; end; end' Bar::Foo }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/356#comment:2> MacRuby <http://macruby.org/>
#356: autoload is not working ------------------------+--------------------------------------------------- Reporter: dev@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.5 Component: MacRuby | Resolution: fixed Keywords: | ------------------------+--------------------------------------------------- Comment(by conradwt@…): Please file another ticket because this issue is within the module/class. -- Ticket URL: <http://www.macruby.org/trac/ticket/356#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby