From: Dave Rolsky Date: Tue, 30 Jun 2009 19:49:08 +0000 (-0500) Subject: What the heck, make the new immutable subclass immutable itself. All X-Git-Tag: 0.89~12 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0d080779bb0ad95782d8a5225a1b61000284aaaa;p=gitmo%2FClass-MOP.git What the heck, make the new immutable subclass immutable itself. All tests pass, and it just feels nice. --- diff --git a/lib/Class/MOP/Class.pm b/lib/Class/MOP/Class.pm index 52cd74c..6a464c8 100644 --- a/lib/Class/MOP/Class.pm +++ b/lib/Class/MOP/Class.pm @@ -1115,6 +1115,8 @@ sub _immutable_metaclass { } } + $meta->make_immutable; + return $class_name; }