give CMOP::Object a real meta method, and simplify some things
[gitmo/Class-MOP.git] / lib / Class / MOP.pm
index 5fee940..fabda7d 100644 (file)
@@ -25,15 +25,11 @@ BEGIN {
         ? sub () { 0 }
         : sub () { 1 };
 
-    *DEBUG_NO_META = ($ENV{DEBUG_NO_META})
-        ? sub () { 1 }
-        : sub () { 0 };
-
     # this is either part of core or set up appropriately by MRO::Compat
     *check_package_cache_flag = \&mro::get_pkg_gen;
 }
 
-our $VERSION   = '1.08';
+our $VERSION   = '1.09';
 our $XS_VERSION = $VERSION;
 $VERSION = eval $VERSION;
 our $AUTHORITY = 'cpan:STEVAN';
@@ -668,6 +664,12 @@ Class::MOP::Instance->meta->add_attribute(
     ),
 );
 
+## --------------------------------------------------------
+## Class::MOP::Object
+
+# need to replace the meta method there with a real meta method object
+Class::MOP::Object->meta->_add_meta_method;
+
 require Class::MOP::Deprecated unless our $no_deprecated;
 
 # we need the meta instance of the meta instance to be created now, in order
@@ -704,6 +706,8 @@ $_->meta->make_immutable(
     Class::MOP::Method::Accessor
     Class::MOP::Method::Constructor
     Class::MOP::Method::Wrapped
+
+    Class::MOP::Method::Meta
 /;
 
 $_->meta->make_immutable(