Jeff Clites <[EMAIL PROTECTED]> wrote: > I've run into a couple of issue with library loading which have their > origin down inside the IMCC code:
> 1) External libraries are being loaded at parse time. > Inside of INS() in imcc/parser_util.c, Parrot_load_lib() is called at > parse-time when loadlib is encountered. This is causing libraries to be > loaded twice (once at parse-time and once at run-time), which is a > problem in its own right, but it also just seems like generally the > wrong behavior. If the library registers itself correctly, its loaded once only. E.g. a PMC library calls pmc_register() so that the classname is known. > 2) Code which tries to instantiate a dynamically-loaded PMC fails to > parse. > Code such as this: > loadlib P1, "foo" > new P0, .Foo How does "foo" look like? dynclasses/dynfoo.pasm has an example of loading dynamic classes (and it works here). > JEff leo