Ticket #167 (closed defect: fixed)
Autoload throws an exception at the second call
| Reported by: | vincent.isambart@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | critical | Milestone: | MacRuby 0.4 |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description
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).
Change History
Note: See
TracTickets for help on using
tickets.

