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: openSUSE Tumbleweed |
Version: 6 | Vendor: openSUSE |
Release: 2.32 | Build date: Thu Apr 23 19:54:26 2015 |
Group: Development/Libraries/Perl | Build host: reproducible |
Size: 60230 | Source RPM: perl-constant-defer-6-2.32.src.rpm |
Packager: https://bugs.opensuse.org | |
Url: http://search.cpan.org/dist/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 any 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) since it's not a single scalar value. In the current implementation a deferred constant becomes a plain constant after the first use, so may inline etc in code compiled after that (see the /IMPLEMENTATION manpage below). See _examples/simple.pl_ in the constant-defer source code for a complete sample program.
GPL-3.0+
* Thu Apr 23 2015 coolo@suse.com - add the license to cpanspec.yml * Thu Apr 23 2015 cdenicolo@suse.com - license update: GPL-3.0+ license version is 3.0 * Tue Apr 14 2015 coolo@suse.com - updated to 6 see /usr/share/doc/packages/perl-constant-defer/Changes * Mon Jun 16 2014 coolo@suse.com - fix license - GPL-3.0+ * Thu Apr 14 2011 coolo@opensuse.org - initial package 5 * created by cpanspec 1.78.04
/usr/lib/perl5/vendor_perl/5.40.0/constant /usr/lib/perl5/vendor_perl/5.40.0/constant/defer.pm /usr/share/doc/packages/perl-constant-defer /usr/share/doc/packages/perl-constant-defer/COPYING /usr/share/doc/packages/perl-constant-defer/Changes /usr/share/doc/packages/perl-constant-defer/README /usr/share/doc/packages/perl-constant-defer/examples /usr/share/doc/packages/perl-constant-defer/examples/instance.pl /usr/share/doc/packages/perl-constant-defer/examples/simple.pl /usr/share/man/man3/constant::defer.3pm.gz
Generated by rpm2html 1.8.1
Fabrice Bellet, Sun Jan 12 00:30:25 2025