autobox-Core
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)
1.2 Fri Mar 19 12:11:00 2010
- fixes version 1.1 losing the MANIFEST and being essentially
a null upload. Bah!
- merges in brunov's flip, center, last_index, slice,
range, documentation, and various bug fixes.
1.1 Thu Mar 18 13:33:00 2010
- actually adds the tests to the MANIFEST so they get bundled.
- Thanks to http://github.com/daxim daxim/Lars DIECKOW for clearing
out the RT queue (which I didn't know existed), merging in the fixes and
features that still applied, which were several.
1.0 Sun Mar 7 22:35:00 2010
- is identical to 0.9. PAUSE tells me 0.9 already exists so
bumping the number. *^%$!
0.10 Mon Jan 25 17:18:00 2010
- no change recorded.
0.9 Mon Jan 25 17:07:00 2010
- is identical to 0.8. PAUSE tells me 0.8 already exists so bumping the number.
store than the data held strictly requires. "Int", "Num", "Bit", "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 "is" and "has" work. Perl provides "Int" to
encapsulate an "int", "Num" to encapsulate a "num", "Bit" to encapsulate
a "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.
*autobox*ing makes primitive objects and they're boxed versions
equivalent. An "int" may be used as an "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";
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";
( run in 0.355 second using v1.01-cache-2.11-cpan-bf8d7bb2d05 )