From: Dave Rolsky Date: Tue, 30 Jun 2009 16:10:47 +0000 (-0500) Subject: There's no point making the new metaclass for immutable metaclasses X-Git-Tag: 0.89~20 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=505797c102fd557028b46f7c68e31d02a87bfdb9;p=gitmo%2FClass-MOP.git There's no point making the new metaclass for immutable metaclasses immutable itself. We will never construct an object (we just rebless), so there's no constructor to inline, and it's relatively uncommon to need to introspect the new class. --- diff --git a/lib/Class/MOP/Class.pm b/lib/Class/MOP/Class.pm index 0e24de4..1214e45 100644 --- a/lib/Class/MOP/Class.pm +++ b/lib/Class/MOP/Class.pm @@ -1109,8 +1109,6 @@ sub _immutable_metaclass { my $meta = $self->initialize($class_name); $meta->superclasses(@super); - $meta->make_immutable; - return $class_name; } }