use Carp 'confess';
use Scalar::Util 'blessed', 'weaken', 'looks_like_number';
-our $VERSION = '0.64_01';
+our $VERSION = '0.73';
$VERSION = eval $VERSION;
our $AUTHORITY = 'cpan:STEVAN';
}, $class;
}
+sub can_be_inlined { 1 }
+
## accessors
sub options { (shift)->{'options'} }
);
# calling the constructor ...
- $constructor->body->($metaclass->name, %params);
+ $constructor->body->execute($metaclass->name, %params);
=head1 DESCRIPTION
This returns a boolean, but since constructors are very rarely
not inlined, this always returns true for now.
+=item B<can_be_inlined>
+
+This method always returns true in this class. It exists so that
+subclasses (like in Moose) can override and do some sort of checking
+to determine whether or not inlining the constructor is safe.
+
=item B<initialize_body>
This creates the code reference for the constructor itself.