diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-05-18 22:26:23 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-05-21 18:09:32 -0700 |
commit | 5fdfd519dc37986a14b6b55f3343f6dc6db73355 (patch) | |
tree | c61f1d5bb7e0f35b5e3d2d334075523b9d39fb3d /gv.c | |
parent | c6dcfcc2ec4d63e60139d49565a12d0b103c9d8a (diff) | |
download | perl-5fdfd519dc37986a14b6b55f3343f6dc6db73355.tar.gz |
Don’t magicalise %OVERLOAD
It’s not necessary any more, now that mro_method_changed_in sets the
AMAGIC flag on the stash.
Diffstat (limited to 'gv.c')
-rw-r--r-- | gv.c | 23 |
1 files changed, 1 insertions, 22 deletions
@@ -1403,18 +1403,6 @@ S_gv_magicalize_isa(pTHX_ GV *gv) NULL, 0); } -STATIC void -S_gv_magicalize_overload(pTHX_ GV *gv) -{ - HV* hv; - - PERL_ARGS_ASSERT_GV_MAGICALIZE_OVERLOAD; - - hv = GvHVn(gv); - GvMULTI_on(gv); - hv_magic(hv, NULL, PERL_MAGIC_overload); -} - GV * Perl_gv_fetchpvn_flags(pTHX_ const char *nambeg, STRLEN full_len, I32 flags, const svtype sv_type) @@ -1697,7 +1685,7 @@ Perl_gv_fetchpvn_flags(pTHX_ const char *nambeg, STRLEN full_len, I32 flags, /* set up magic where warranted */ if (stash != PL_defstash) { /* not the main stash */ - /* We only have to check for four names here: EXPORT, ISA, OVERLOAD + /* We only have to check for three names here: EXPORT, ISA and VERSION. All the others apply only to the main stash or to CORE (which is checked right after this). */ if (len > 2) { @@ -1711,10 +1699,6 @@ Perl_gv_fetchpvn_flags(pTHX_ const char *nambeg, STRLEN full_len, I32 flags, if (strEQ(name2, "SA")) gv_magicalize_isa(gv); break; - case 'O': - if (strEQ(name2, "VERLOAD")) - gv_magicalize_overload(gv); - break; case 'V': if (strEQ(name2, "ERSION")) GvMULTI_on(gv); @@ -1762,11 +1746,6 @@ Perl_gv_fetchpvn_flags(pTHX_ const char *nambeg, STRLEN full_len, I32 flags, gv_magicalize_isa(gv); } break; - case 'O': - if (strEQ(name2, "VERLOAD")) { - gv_magicalize_overload(gv); - } - break; case 'S': if (strEQ(name2, "IG")) { HV *hv; |