Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: perl-constant-defer | Distribution: Mageia |
Version: 6.0.0 | Vendor: Mageia.Org |
Release: 7.mga9 | Build date: Mon Mar 21 05:42:00 2022 |
Group: Development/Perl | Build host: localhost |
Size: 67006 | Source RPM: perl-constant-defer-6.0.0-7.mga9.src.rpm |
Packager: umeabot <umeabot> | |
Url: https://metacpan.org/release/constant-defer | |
Summary: Constant subs with deferred value calculation |
'constant::defer' creates a subroutine which on the first call runs given code to calculate its value, and on the second and subsequent calls just returns that value, like a constant. The value code is discarded once run, allowing it to be garbage collected. Deferring a calculation is good if it might take a lot of work or produce a big result, but is only needed sometimes or only well into a program run. If it's never needed then the value code never runs. A deferred constant is generally not inlined or folded (see the perlop/Constant Folding manpage) like a plain 'constant' since it's not a single scalar value. In the current implementation a deferred constant becomes a plain one after the first use, so may inline etc in code compiled after that (see the /IMPLEMENTATION manpage below).
GPL+ or Artistic
* Mon Mar 21 2022 umeabot <umeabot> 6.0.0-7.mga9 + Revision: 1811446 - Mageia 9 Mass Rebuild
/usr/share/doc/perl-constant-defer /usr/share/doc/perl-constant-defer/COPYING /usr/share/doc/perl-constant-defer/Changes /usr/share/doc/perl-constant-defer/META.json /usr/share/doc/perl-constant-defer/META.yml /usr/share/doc/perl-constant-defer/MYMETA.yml /usr/share/doc/perl-constant-defer/README /usr/share/doc/perl-constant-defer/SIGNATURE /usr/share/doc/perl-constant-defer/examples /usr/share/doc/perl-constant-defer/examples/instance.pl /usr/share/doc/perl-constant-defer/examples/simple.pl /usr/share/man/man3/constant::defer.3pm.xz /usr/share/perl5/vendor_perl/constant /usr/share/perl5/vendor_perl/constant/defer.pm
Generated by rpm2html 1.8.1
Fabrice Bellet, Sat Aug 31 07:03:35 2024