[Moose-commits] r7318 -
Moose/branches/method_generation_cleanup/lib/Moose/Meta/Method
nothingmuch at code2.0beta.co.uk
nothingmuch at code2.0beta.co.uk
Sat Jan 17 22:02:37 GMT 2009
Author: nothingmuch
Date: 2009-01-17 14:02:37 -0800 (Sat, 17 Jan 2009)
New Revision: 7318
Modified:
Moose/branches/method_generation_cleanup/lib/Moose/Meta/Method/Accessor.pm
Log:
use _compile_code in Accessor
Modified: Moose/branches/method_generation_cleanup/lib/Moose/Meta/Method/Accessor.pm
===================================================================
--- Moose/branches/method_generation_cleanup/lib/Moose/Meta/Method/Accessor.pm 2009-01-17 22:02:14 UTC (rev 7317)
+++ Moose/branches/method_generation_cleanup/lib/Moose/Meta/Method/Accessor.pm 2009-01-17 22:02:37 UTC (rev 7318)
@@ -35,7 +35,7 @@
};
#warn "code for $attr_name =>\n" . $code . "\n";
- $self->_eval_closure($environment, $self->_prepare_code( code => $code ) )
+ $self->_compile_code( environment => $environment, code => $code )
or $self->throw_error("Could not create writer for '${\$self->associated_attribute->name}' because $@ \n code: $code", error => $@, data => $code );
}
More information about the Moose-commits
mailing list