X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FClass%2FMOP%2FObject.pm;h=689308c37dc1577c725b0302e649d8fe5daf1a0e;hb=ae507e19065de3734006ac4252d124e48f14e9ad;hp=c431a657efb32d61b755e09106c23e7478a9ffc7;hpb=6e1c8b63d87c6e1d8e84e15cc2c1f5336780515b;p=gitmo%2FClass-MOP.git diff --git a/lib/Class/MOP/Object.pm b/lib/Class/MOP/Object.pm index c431a65..689308c 100644 --- a/lib/Class/MOP/Object.pm +++ b/lib/Class/MOP/Object.pm @@ -6,7 +6,8 @@ use warnings; use Scalar::Util 'blessed'; -our $VERSION = '0.63'; +our $VERSION = '0.73'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; # introspection @@ -16,6 +17,10 @@ sub meta { Class::MOP::Class->initialize(blessed($_[0]) || $_[0]); } +sub _new { + shift->meta->new_object(@_); +} + # RANT: # Cmon, how many times have you written # the following code while debugging: @@ -44,7 +49,7 @@ Class::MOP::Object - Object Meta Object =head1 DESCRIPTION -This class is basically a stub, it provides no functionality at all, +This class is basically a stub, it provides almost no functionality at all, and really just exists to make the Class::MOP metamodel complete. ......