add strict_constructor => Bool optin to make_immutable (EXPERIMENTAL)
[gitmo/Mouse.git] / lib / Mouse / Meta / Class.pm
index 4940eb0..952f598 100644 (file)
@@ -245,6 +245,8 @@ sub make_immutable {
 
     $self->{is_immutable}++;
 
+    $self->{_strict_constructor} = $args{strict_constructor};
+
     if ($args{inline_constructor}) {
         my $c = $self->constructor_class;
         Mouse::Util::load_class($c);