call methods on native types
The autobox pragma 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.
- Developed at devel:languages:perl
- Sources inherited from project openSUSE:Factory
-
1
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout devel:ARM:Factory:Contrib:ILP32/perl-autobox && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
autobox-2.82.tar.gz | 0000075361 73.6 KB | |
perl-autobox.changes | 0000001623 1.58 KB | |
perl-autobox.spec | 0000002470 2.41 KB |
Revision 11 (latest revision is 16)
Adrian Schröter (adrianSuSE)
committed
(revision 11)
Split 13.2 from Factory
Comments 0