projects
/
gitmo/Class-MOP.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
0934ba5
)
Revert "Default accessor generators to use inline generators"
gfx [Thu, 13 Aug 2009 08:11:23 +0000 (17:11 +0900)]
This reverts commit
9f4ddc6e70f5666a21f99c0d5b682140175feafc
.
lib/Class/MOP/Attribute.pm
patch
|
blob
|
blame
|
history
lib/Class/MOP/Class.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Class/MOP/Attribute.pm
b/lib/Class/MOP/Attribute.pm
index
a51bc2e
..
8426d9c
100644
(file)
--- 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
(file)
--- 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,