X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FClass%2FMOP%2FClass%2FImmutable.pm;h=bbe5429fa6ff28a766544d8ad6d057392fa46c9e;hb=4d47b77fec3593e25c28c3126f9b54d7d0bae8e4;hp=a94a12b437501db06803421df38255b7abfe4792;hpb=495af5181ab3a346f2271c3b1a981e355941e2c4;p=gitmo%2FClass-MOP.git diff --git a/lib/Class/MOP/Class/Immutable.pm b/lib/Class/MOP/Class/Immutable.pm index a94a12b..bbe5429 100644 --- a/lib/Class/MOP/Class/Immutable.pm +++ b/lib/Class/MOP/Class/Immutable.pm @@ -45,9 +45,12 @@ sub make_immutable { () } sub make_metaclass_immutable { my ($class, $metaclass, %options) = @_; - $options{inline_accessors} ||= 1; - $options{inline_constructor} ||= 1; - $options{constructor_name} ||= 'new'; + # NOTE: + # i really need the // (defined-or) operator here + $options{inline_accessors} = 1 unless exists $options{inline_accessors}; + $options{inline_constructor} = 1 unless exists $options{inline_constructor}; + $options{constructor_name} = 'new' unless exists $options{constructor_name}; + $options{debug} = 0 unless exists $options{debug}; my $meta_instance = $metaclass->get_meta_instance; $metaclass->{'___class_precedence_list'} = [ $metaclass->class_precedence_list ]; @@ -174,6 +177,32 @@ to this class. =back +=head2 Introspection and Construction + +=over 4 + +=item B + +=over 4 + +=item I + +=item I + +=item I + +=item I + +=back + +=item B + +=item B + +=item B + +=back + =head2 Methods which will die if you touch them. =over 4 @@ -210,20 +239,6 @@ to this class. =back -=head2 Introspection and Construction - -=over 4 - -=item B - -=item B - -=item B - -=item B - -=back - =head1 AUTHOR Stevan Little Estevan@iinteractive.comE