p5-constant-defer - Constant subs with deferred value calculation

Property Value
Distribution FreeBSD 11
Repository FreeBSD Ports Latest i386
Package filename p5-constant-defer-6.txz
Package name p5-constant-defer
Package version 6
Package release -
Package architecture i386
Package type txz
Category devel perl5
Homepage https://metacpan.org/release/constant-defer
License GPLv3
Maintainer sunpoet@FreeBSD.org
Download size 22.42 KB
Installed size 54.09 KB
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
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 "Constant Folding"
in perlop) 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 "IMPLEMENTATION" below).
WWW: https://metacpan.org/release/constant-defer


Package Version Architecture Repository
p5-constant-defer-6.txz 6 i386 FreeBSD Ports Quarterly
p5-constant-defer-6.txz 6 amd64 FreeBSD Ports Quarterly
p5-constant-defer-6.txz 6 amd64 FreeBSD Ports Latest
p5-constant-defer - - -


Name Value
perl5 = 5.28.1_1


Type URL
Mirror pkg.freebsd.org
Binary Package p5-constant-defer-6.txz
Source Package devel/p5-constant-defer

Install Howto

Install p5-constant-defer txz package:

# pkg install p5-constant-defer

See Also

Package Description
p5-constant-lexical-2.0003_1.txz Perl pragma to declare lexical compile-time constants
p5-cpan-listchanges-0.06_3.txz Perl extension to list changes for CPAN modules
p5-curry-1.001000.txz Create automatic curried method call closures for any class or object
p5-cyrillic-2.09_1.txz Library for fast and easy Cyrillic text manipulation
p5-dTemplate-2.5_1.txz Powerful template handling logic with advanced features
p5-dicewaregen-1.4.txz Perl script to generate Diceware dictionaries for passwords
p5-docx2txt-1.4.txz Utility to convert Docx documents to equivalent Text documents
p5-enum-1.110.txz Defines symbolic constants with ordered numeric values, like C enums
p5-eperl-2.2.14_1.txz Perl Modules of ePerl package: Parse::ePerl, Apache::ePerl
p5-ex-lib-0.90_1.txz Relative use lib in absolute way
p5-experimental-0.020.txz Experimental features made easy
p5-feedgnuplot-1.51.txz General purpose pipe-oriented plotting tool
p5-forks-0.36_2.txz Drop-in replacement for Perl threads using fork()
p5-github_creator-0.15_1.txz Create a Github repository for your Perl module
p5-goto-file-0.005.txz Stop parsing the current file and move on to a different one