diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-05-18 22:37:31 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-05-21 18:09:33 -0700 |
commit | bd6e6c126bf78b3ecdc6512201fd30a2c288fe7f (patch) | |
tree | fb761eab95e4a92124df9200a6622b8d151dcffb /regen | |
parent | 5fdfd519dc37986a14b6b55f3343f6dc6db73355 (diff) | |
download | perl-bd6e6c126bf78b3ecdc6512201fd30a2c288fe7f.tar.gz |
Annihilate ‘A’ magic
How ironic! Overloading is called ‘A’ magic internally all over the
place, because of the letter used as its magic type. But now it does
not even use that magic.
I left a comment in mg_vtable.pl, so that future maintainers will have
some clue as to what AMAGIC means.
Diffstat (limited to 'regen')
-rw-r--r-- | regen/mg_vtable.pl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/regen/mg_vtable.pl b/regen/mg_vtable.pl index f49471bf2b..b4ed0c6dd3 100644 --- a/regen/mg_vtable.pl +++ b/regen/mg_vtable.pl @@ -25,9 +25,9 @@ my %mg = ( sv => { char => '\0', vtable => 'sv', readonly_acceptable => 1, desc => 'Special scalar variable' }, - overload => { char => 'A', vtable => 'amagic', desc => '%OVERLOAD hash' }, - overload_elem => { char => 'a', vtable => 'amagicelem', - desc => '%OVERLOAD hash element' }, + # overload, or type "A" magic, used to be here. Hence overloaded is + # often called AMAGIC internally, even though it does not use "A" + # magic any more. overload_table => { char => 'c', vtable => 'ovrld', desc => 'Holds overload table (AMT) on stash' }, bm => { char => 'B', vtable => 'regexp', value_magic => 1, @@ -135,8 +135,6 @@ my %sig = 'regexp' => {set => 'setregexp', alias => [qw(bm fm)]}, 'regdata' => {len => 'regdata_cnt'}, 'regdatum' => {get => 'regdatum_get', set => 'regdatum_set'}, - 'amagic' => {set => 'setamagic', free => 'setamagic'}, - 'amagicelem' => {set => 'setamagic', free => 'setamagic'}, 'backref' => {free => 'killbackrefs'}, 'ovrld' => {free => 'freeovrld'}, 'utf8' => {set => 'setutf8'}, |