package Moose::Autobox;
-
+use 5.006;
use strict;
use warnings;
use Scalar::Util ();
use Moose::Util ();
-our $VERSION = '0.07';
+our $VERSION = '0.13';
-use base 'autobox';
+use parent 'autobox';
use Moose::Autobox::Undef;
Several people are using this module in serious applications and
it seems to be quite stable. The underlying technologies of L<autobox>
and L<Moose::Role> are also considered stable. There is some performance
-hit, but as I am fond of saying, nothing in life is free. If you have
-any questions regarding this module, either email me, or stop by #moose
-on irc.perl.org and ask around.
+hit, but as I am fond of saying, nothing in life is free. Note that this hit
+only applies to the I<use> of methods on native Perl values, not the mere act
+of loading this module in your namespace.
+
+If you have any questions regarding this module, either email me, or stop by
+#moose on irc.perl.org and ask around.
=head2 Adding additional methods
instead of this:
- sub SCALAR::bar { 42
+ sub SCALAR::bar { 42 }
as you would with vanilla autobox.
=item B<mixin_additional_role ($type, $role)>
-This will mixin an additonal C<$role> into a certain C<$type>. The
+This will mixin an additional C<$role> into a certain C<$type>. The
types can be SCALAR, ARRAY, HASH or CODE.
This can be used to add additional methods to the types, see the