pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/p5-Import-Into



Module Name:    pkgsrc
Committed By:   sno
Date:           Fri Oct 19 07:47:13 UTC 2012

Added Files:
        pkgsrc/devel/p5-Import-Into: DESCR Makefile distinfo
        pkgsrc/devel/p5-Import-Into/patches: patch-aa

Log Message:
Adding new package for CPAN module Import::Into version 1.001000 into
devel/p5-Import-Into.

Writing exporters is a pain. Some use Exporter, some use Sub::Exporter,
some use Moose::Exporter, some use Exporter::Declare ... and some things
are pragmas.

If you want to re-export other things, you have to know which is which.
Exporter subclasses provide export_to_level, but if they overrode their
import method all bets are off. Sub::Exporter provides an into parameter
but figuring out something used it isn't trivial. Pragmas need to have
their import method called directly since they affect the current unit
of compilation.

It's ... annoying.

However, there is an approach that actually works for all of these types.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/p5-Import-Into/DESCR \
    pkgsrc/devel/p5-Import-Into/Makefile pkgsrc/devel/p5-Import-Into/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/p5-Import-Into/patches/patch-aa

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index