| MooseX-Compile documentation | view source | Contained in the MooseX-Compile distribution. |
MooseX::Compile::Compiler - The Moose metaclass .pmc compiler
my $compiler = MooseX::Compile::Compiler->new();
$compiler->compile_class(
class => "Foo::Bar",
file => $INC{"Foo/Bar.pm"},
pmc_file => "my/pmc/lib/Foo/Bar.pmc",
);
This class does the heavy lifting of emitting a .pmc and a .mopc for a
given class.
This is alpha code. You can tinker, subclass etc but beware that things definitely will change in the near future.
When a final version comes out there will be a documented process for how to extend the compiler to handle your classes, whether by subclassing or using various hooks.
| MooseX-Compile documentation | view source | Contained in the MooseX-Compile distribution. |