bless $self, ref $new_self;
+ # FIXME? This seems to be necessary in some cases because of how
+ # Class::MOP::Class->construct_class_instance will weaken the
+ # metaclass store entry for an anonymous class. However, if that
+ # anonymous class is a metaclass's metaclass, we don't want it
+ # going out of scope. I'm not sure this is the right fix at all.
Class::MOP::store_metaclass_by_name( $self->name, $self );
}