[Jifty-commit] r6393 - jifty/trunk/lib/Jifty

Jifty commits jifty-commit at lists.jifty.org
Fri Feb 20 21:36:24 EST 2009


Author: ishigaki
Date: Fri Feb 20 21:36:24 2009
New Revision: 6393

Modified:
   jifty/trunk/lib/Jifty/ClassLoader.pm

Log:
Jifty::ClassLoader: reverted the previous commit and added ", fallback => 1" to the overload (thanks, Sartak)


Modified: jifty/trunk/lib/Jifty/ClassLoader.pm
==============================================================================
--- jifty/trunk/lib/Jifty/ClassLoader.pm	(original)
+++ jifty/trunk/lib/Jifty/ClassLoader.pm	Fri Feb 20 21:36:24 2009
@@ -5,7 +5,7 @@
 
 our %AUTOGENERATED;
 
-use overload '""' => \&stringify, "eq" => \&eq;
+use overload '""' => \&stringify, fallback => 1;
 
 =head1 NAME
 
@@ -472,15 +472,6 @@
     return "Jifty::ClassLoader(@{[$self->{base}]})";
 }
 
-=head2 eq
-
-This is here to fix a problem on some platforms (including Windows) while comparing an overloaded package with a not-overloaded string.
-
-sub eq {
-    my $self = shift;
-    return $self->stringify eq shift;
-}
-
 =head2 DESTROY
 
 When the ClassLoader gets garbage-collected, its entry in @INC needs


More information about the Jifty-commit mailing list