From: gfx Date: Thu, 13 Aug 2009 08:11:23 +0000 (+0900) Subject: Revert "Default accessor generators to use inline generators" X-Git-Tag: 0.92_01~25^2~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=02aedd391f8320df95c4b39503eaf6a8a22ec07e;p=gitmo%2FClass-MOP.git Revert "Default accessor generators to use inline generators" This reverts commit 9f4ddc6e70f5666a21f99c0d5b682140175feafc. --- diff --git a/lib/Class/MOP/Attribute.pm b/lib/Class/MOP/Attribute.pm index a51bc2e..8426d9c 100644 --- a/lib/Class/MOP/Attribute.pm +++ b/lib/Class/MOP/Attribute.pm @@ -402,8 +402,6 @@ sub install_accessors { my $inline = shift; my $class = $self->associated_class; - $inline = 1 unless defined $inline; - $class->add_method( $self->_process_accessors('accessor' => $self->accessor(), $inline) ) if $self->has_accessor(); diff --git a/lib/Class/MOP/Class.pm b/lib/Class/MOP/Class.pm index 8a0d0ae..6f1dd31 100644 --- a/lib/Class/MOP/Class.pm +++ b/lib/Class/MOP/Class.pm @@ -940,7 +940,7 @@ sub _immutable_options { my ( $self, @args ) = @_; return ( - inline_accessors => 0, + inline_accessors => 1, inline_constructor => 1, inline_destructor => 0, debug => 0,