This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
ParseXS.pm: Only inc PL_amagic_generation before 5.9
authorFather Chrysostomos <sprout@cpan.org>
Wed, 23 May 2012 05:46:05 +0000 (22:46 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 23 May 2012 07:56:11 +0000 (00:56 -0700)
commit18c03d6f6871990315e784e4ee868ef32ee7bb71
tree42abcbce5e4c5a1758fbf1a369bfeb3e2824e1af
parent6697815661d775deb113dbdbc2e6822d55d3522b
ParseXS.pm: Only inc PL_amagic_generation before 5.9

Originally, overload would not oven be checked for if
amagic_generation was 0, so it was necessary to do
PL_amagic_generation++, in case this was the first class to have over-
loading.  Ever since perl-5.8.0-87-g439cb1c, PL_amagic_generation++
has been unnecessary, since the boot code for version objects incre-
ments it.  Furthermore, newXS was already doing PL_sub_generation++
before that, and now does mro_method_changed_in.  The code for check-
ing the staleness of the overload tables has always checked
sub_generation (and, later, the stash-specific generation numbers).
dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS.pm