On Fri, Apr 24, 2009 at 09:01:41AM -0400, Jeff Horwitz wrote: >> In order to get the above to work you'd need a "use Foo;" statement >> somewhere first, to load the Foo class (and register it in the parser). > > ok, makes sense. it worked before, so i thought something was broken. > turns out it was me. :) > > i'm going to have to play some games to get this working correctly when i > precompile my modules, since these classes are created by the mod_parrot > runtime and don't exist at compile-time.
If your modules are using P6object to create their classes, then everything should "just work" with "use Foo" -- just put the Foo.pir or Foo.pbc somewhere that Rakudo can find it. Pm