There's no point making the new metaclass for immutable metaclasses
Dave Rolsky [Tue, 30 Jun 2009 16:10:47 +0000 (11:10 -0500)]
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.

lib/Class/MOP/Class.pm

index 0e24de4..1214e45 100644 (file)
@@ -1109,8 +1109,6 @@ sub _immutable_metaclass {
         my $meta = $self->initialize($class_name);
         $meta->superclasses(@super);
 
-        $meta->make_immutable;
-
         return $class_name;
     }
 }