X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Foverload.pm;h=0120882999a2f85523fc865c8f2068ed78cf6576;hb=e68ec53fb89aea41859fe8c109fe9b03a3599284;hp=d511f2c142e87261908f8f10a786591db5183740;hpb=299476e067e522a02a8665fc1b3cd7f58f408de0;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/overload.pm b/lib/overload.pm index d511f2c..0120882 100644 --- a/lib/overload.pm +++ b/lib/overload.pm @@ -2,8 +2,6 @@ package overload; our $VERSION = '1.04'; -$overload::hint_bits = 0x20000; # HINT_LOCALIZE_HH - sub nil {} sub OVERLOAD { @@ -149,7 +147,7 @@ sub constant { } else { $^H{$_[0]} = $_[1]; - $^H |= $constants{$_[0]} | $overload::hint_bits; + $^H |= $constants{$_[0]}; } shift, shift; } @@ -517,11 +515,6 @@ The key C<"fallback"> governs what to do if a method for a particular operation is not found. Three different cases are possible depending on the value of C<"fallback">: -=head2 Smart Match - -The key C<"~~"> allows you to override the smart matching used by -the switch construct. See L. - =over 16 =item * C @@ -547,6 +540,11 @@ C<"nomethod"> value, and if this is missing, raises an exception. B C<"fallback"> inheritance via @ISA is not carved in stone yet, see L<"Inheritance and overloading">. +=head2 Smart Match + +The key C<"~~"> allows you to override the smart matching used by +the switch construct. See L. + =head2 Copy Constructor The value for C<"="> is a reference to a function with three