[MacRuby-devel] [MacRuby] #167: Autoload throws an exception at the second call
MacRuby
ruby-noreply at macosforge.org
Sun Nov 23 02:18:58 PST 2008
#167: Autoload throws an exception at the second call
----------------------------------------+-----------------------------------
Reporter: vincent.isambart@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: critical | Milestone:
Component: MacRuby | Keywords:
----------------------------------------+-----------------------------------
The second call to autoload always throws an exception:
{{{
./miniruby -e 'autoload :A, "a";autoload :B, "b"'
-e:1:in `autoload': wrong argument type NSObject (expected Data)
(TypeError)
from -e:1:in `<main>'
}}}
The first call to rb_autoload creates and saves an autoload_table, but it
seems the type of the table (NSObject) is not what the second call to
rb_autoload is waiting for (it wants a Data). The check is on the first
line of check_autoload_table (all of those functions are in variable.c).
--
Ticket URL: <http://www.macruby.org/trac/ticket/167>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list