Commit graph

3 commits

Author SHA1 Message Date
seb
f9020301d4 Set LICENSE to Perl 5's 2010-04-23 03:56:14 +00:00
seb
344253f9c0 Update p5-autobox from version 2.55 to version 2.70.
Upstream changes:
2.70  Wed Mar 17 19:27:44 2010
    - replace autobox_can and autobox_isa with autobox_class
      this also fixes import, unimport and VERSION
      - added t/version.t
      - renamed t/universal.t => t/autobox_class.t

2.60  Wed Mar 17 16:34:56 2010
    - fix RT #46814 (thanks Tye McQueen)
      - added t/rt_46814.t
    - fix RT #49273 (thanks Daniel Austin)
    - fix RT #55565 (thanks Schwern)
    - fix RT #55652 (thanks Schwern)
      - $native->isa and $native->can must now be called as $native->autobox_isa and $native->autobox_can
      - added t/rt_55652.t
2010-04-23 03:45:40 +00:00
seb
d2a70b294b Initial import of p5-autobox version 2.55 in the NetBSD Packages
Collection.

The Perl 5 module autobox provides an autobox pragma.  It allows
methods to be called on integers, floats, strings, arrays, hashes,
and code references in exactly the same manner as blessed references.
The autoboxing is transparent: boxed values are not blessed into
their (user-defined) implementation class (unless the method elects
to bestow such a blessing) - they simply use its methods as though
they are.  The classes (packages) into which the native types are
boxed are fully configurable. By default, a method invoked on a
non-object is assumed to be defined in a class whose name corresponds
to the ref() type of that value - or SCALAR if the value is a
non-reference.  This mapping can be overriden by passing key/value
pairs to the use autobox statement, in which the keys represent
native types, and the values their associated classes.
2009-03-22 14:37:44 +00:00