[Moose-commits] r7751 - Class-MOP/trunk/lib/Class/MOP/Method
autarch at code2.0beta.co.uk
autarch at code2.0beta.co.uk
Fri Feb 20 18:09:55 GMT 2009
Author: autarch
Date: 2009-02-20 10:09:55 -0800 (Fri, 20 Feb 2009)
New Revision: 7751
Modified:
Class-MOP/trunk/lib/Class/MOP/Method/Accessor.pm
Log:
Fix one more instance of passing a quoted attr name
Modified: Class-MOP/trunk/lib/Class/MOP/Method/Accessor.pm
===================================================================
--- Class-MOP/trunk/lib/Class/MOP/Method/Accessor.pm 2009-02-20 18:06:53 UTC (rev 7750)
+++ Class-MOP/trunk/lib/Class/MOP/Method/Accessor.pm 2009-02-20 18:09:55 UTC (rev 7751)
@@ -122,9 +122,9 @@
my $code = $self->_eval_closure(
{},
'sub {'
- . $meta_instance->inline_set_slot_value('$_[0]', "'$attr_name'", '$_[1]')
+ . $meta_instance->inline_set_slot_value('$_[0]', $attr_name, '$_[1]')
. ' if scalar(@_) == 2; '
- . $meta_instance->inline_get_slot_value('$_[0]', "'$attr_name'")
+ . $meta_instance->inline_get_slot_value('$_[0]', $attr_name)
. '}'
);
confess "Could not generate inline accessor because : $@" if $@;
More information about the Moose-commits
mailing list