2017-09-17 11:32:22 +02:00
|
|
|
$NetBSD: distinfo,v 1.4 2017/09/17 09:32:22 wiz Exp $
|
Adding package for CPAN distribution circular-require version 0.10 into
devel/p5-circular-require.
Perl by default just ignores cycles in require statements - if Foo.pm does
use Bar and Bar.pm does use Foo, doing use Foo elsewhere will start loading
Foo.pm, then hit the use statement, start loading Bar.pm, hit the use
statement, notice that Foo.pm has already started loading and ignore it,
and continue loading Bar.pm. But Foo.pm hasn't finished loading yet, so if
Bar.pm uses anything from Foo.pm (which it likely does, if it's loading it),
those won't be accessible while the body of Bar.pm is being executed. This
can lead to some very confusing errors, especially if introspection is
happening at load time (make_immutable in Moose classes, for example). This
module generates a warning whenever a module is skipped due to being loaded,
if that module has not finished executing.
This module works as a pragma, and typically pragmas have lexical scope.
Lexical scope doesn't make a whole lot of sense for this case though,
because the effect it's tracking isn't lexical (what does it mean to disable
the pragma inside of a cycle vs. outside of a cycle? does disabling it
within a cycle cause it to always be disabled for that cycle, or only if
it's disabled at the point where the warning would otherwise be generated?
etc.), but dynamic scope (the scope that, for instance, local uses) does,
and that's how this module works. Saying no circular::require enables the
module for the current dynamic scope, and use circular::require disables
it for the current dynamic scope. Hopefully, this will just do what you mean.
2013-07-03 10:41:29 +02:00
|
|
|
|
2017-09-17 11:32:22 +02:00
|
|
|
SHA1 (circular-require-0.12.tar.gz) = d8a5c7eb4a2ea8cb4a687d3a216e28fc37321114
|
|
|
|
RMD160 (circular-require-0.12.tar.gz) = d74abda3419c7f382b3e2007dc348507daa8ce22
|
|
|
|
SHA512 (circular-require-0.12.tar.gz) = f07a3dacbdf63d3be829d142ce55b61216e2eb64ec9f52cb58764758dd8dc2d48facd5ca37acf3610f3b4ae3545a5dbff0ffe24afc547e0ff9b9e8d529393047
|
|
|
|
Size (circular-require-0.12.tar.gz) = 18614 bytes
|