This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to annotated tag release-0.008
in repository libclass-tiny-perl.

commit e29b8597a86a5874e4fbe134201a3de6caba849c
Author: David Golden <dagol...@cpan.org>
Date:   Sun Sep 8 06:40:43 2013 -0400

    make precache method a private sub instead
---
 lib/Class/Tiny.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/Class/Tiny.pm b/lib/Class/Tiny.pm
index 59b97bd..f4ab17f 100644
--- a/lib/Class/Tiny.pm
+++ b/lib/Class/Tiny.pm
@@ -81,7 +81,7 @@ package Class::Tiny::Object;
 
 my ( %LINEAR_ISA_CACHE, %BUILD_CACHE, %DEMOLISH_CACHE, %CAN_CACHE );
 
-sub _precache {
+my $_PRECACHE = sub {
     my ($class) = @_;
     $LINEAR_ISA_CACHE{$class} =
       @{"$class\::ISA"} == 1 && ${"$class\::ISA"}[0] eq "Class::Tiny::Object"
@@ -92,11 +92,11 @@ sub _precache {
         $DEMOLISH_CACHE{$s} = *{"$s\::DEMOLISH"}{CODE};
     }
     return $LINEAR_ISA_CACHE{$class};
-}
+};
 
 sub new {
     my $class = shift;
-    my $linear_isa = $LINEAR_ISA_CACHE{$class} || $class->_precache;
+    my $linear_isa = $LINEAR_ISA_CACHE{$class} || $_PRECACHE->($class);
 
     # handle hash ref or key/value arguments
     my $args;

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/libclass-tiny-perl.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to