#167: Autoload throws an exception at the second call
----------------------------------------+-----------------------------------
Reporter: [EMAIL PROTECTED] | Owner: [EMAIL PROTECTED]
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/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel