[Bast-commits] r9797 - in Class-Accessor-Grouped/trunk: .
lib/Class/Accessor
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Thu Nov 25 18:03:18 GMT 2010
Author: ribasushi
Date: 2010-11-25 18:03:18 +0000 (Thu, 25 Nov 2010)
New Revision: 9797
Modified:
Class-Accessor-Grouped/trunk/Changes
Class-Accessor-Grouped/trunk/lib/Class/Accessor/Grouped.pm
Log:
Minor cleanup and Changes
Modified: Class-Accessor-Grouped/trunk/Changes
===================================================================
--- Class-Accessor-Grouped/trunk/Changes 2010-11-25 16:17:32 UTC (rev 9796)
+++ Class-Accessor-Grouped/trunk/Changes 2010-11-25 18:03:18 UTC (rev 9797)
@@ -1,5 +1,8 @@
Revision history for Class::Accessor::Grouped.
+ - Major cleanup and optimization of code (evaled coderef sharing)
+ - Module can now operate in PurePerl environments with 100%
+ compatibility (including proper naming of generated coderefs)
0.09008 Sun Oct 11 07:41:56 2010
- Put back a private undocumented method that the DBIC-CDBI compat
Modified: Class-Accessor-Grouped/trunk/lib/Class/Accessor/Grouped.pm
===================================================================
--- Class-Accessor-Grouped/trunk/lib/Class/Accessor/Grouped.pm 2010-11-25 16:17:32 UTC (rev 9796)
+++ Class-Accessor-Grouped/trunk/lib/Class/Accessor/Grouped.pm 2010-11-25 18:03:18 UTC (rev 9797)
@@ -500,6 +500,7 @@
local $@;
my $err;
+
$err = eval { require Sub::Name; 1; } ? undef : do {
delete $INC{'Sub/Name.pm'}; # because older perls suck
$@;
@@ -685,6 +686,7 @@
my $src = $accessor_maker_cache->{source}{$type}{$group}{$field} ||=
$maker_templates->{$type}{pp_code}->($group, $field);
+ no warnings 'redefine';
local $@ if __CAG_UNSTABLE_DOLLARAT;
eval "sub ${fq_name}{$src}";
More information about the Bast-commits
mailing list