Import classes from a packfile

Bart Wiegmans bartwiegmans at gmail.com
Mon Aug 20 10:32:45 UTC 2012


Hi everybody,

I'm having the following situation in mod_parrot:

* I load a compiler (winxed in this case)
* And I compile some source code
* After which I receive a PackfileView.
* The script that was compiled to the PackFileView defines a class
(and maybe some subroutines)
* But I cannot instantiate this class.

Now I can inspect this packfile perfectly and get its' subroutines.
However, what I want to do for mod_parrots' advanced routing is
instantiating a class (by name) and invoking a method on it.
However, the packfileview in question isn't 'really' loaded into the
parrot interpreter, and as such, classes defined in the script cannot
be instantiated by the interpreter.

How to fix this?

I hope to hear from you.
Kind regards,
Bart


More information about the parrot-dev mailing list