autobox-Core
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
Misc
- Make crypt() test optional for platforms without it (thanks Hugmeir)
1.27
Misc
- new version just to creage a new .tar.gz. a './' owned by root
apparently got added to the tar at some point after 'make dist'.
1.26
Fix
- remove 'use feature' from t/synopsis.t. this lets older perls perl.
1.25 Wed Jun 12 14:45:54 CDT 2013
Fix
- remove 'use feature' from t/synopsis.t. that was cut and paste from the
docs but wasn't actually necessary there.
1.24 Sun Jul 15 11:05:11 PDT 2012
Misc
- MANIFEST no longer includes previous distribution tar balls (Jacinta
Richardson)
1.23 Thu Jul 12 18:05:46 PDT 2012
Docs
- Minor corrections (Jacinta Richardson)
lib/autobox/Core.pm view on Meta::CPAN
store than the data held strictly requires. C<Int>, C<Num>, C<Bit>,
C<Str>, and other types with an initial capital letter, are objects. These
may be subclassed (inherited from) and accept traits, among other things.
These objects are provided by the system for the sole purpose of
representing primitive types as objects, though this has many ancillary
benefits such as making C<is> and C<has> work. Perl provides C<Int> to
encapsulate an C<int>, C<Num> to encapsulate a C<num>, C<Bit> to
encapsulate a C<bit>, and so on. As Perl's implementations of hashes and
dynamically expandable arrays store any type, not just objects, Perl
programmers almost never are required to box primitive types in objects.
Perl's power makes this feature less essential than it is in other
languages.
I<autobox>ing makes primitive objects and they're boxed versions
equivalent. An C<int> may be used as an C<Int> with no constructor call,
no passing, nothing. This applies to constants too, not just variables.
This is a more Perl 6 way of doing things.
# Perl 6 - autoboxing associates classes with primitives types:
print 4.sqrt, "\n";
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.011 second using v1.00-cache-2.02-grep-82fe00e-cpan-1925d2aa809 )