On Tue Apr 03 10:37:13 2007, particle wrote:
> lib/Parrot/Pmc2c/PCCMETHOD.pm contains a number of constants, defined
> for use in the package. these constants should be generated during the
> configure process and included, following the DRY principle (don't
> repeat yourself.)
In r20917, I committed a patch from Lukas Mai at the YAPC::EU hackathon,
to solve this. It refactors config/gen/parrot_include.pm, to generate
not just the .pasm versions of the constants files, but also Perl versions.
I would like to see this refactored further, so it generates .pm files
in lib/Parrot/Constants, and so lib/Parrot/Pmc2c/PCCMETHOD.pm uses the
constants as standard modules with a standard import.
The patch is a huge improvement over the existing code in modularity and
maintainability.
Allison