Front page | perl.perl5.porters |
Postings from October 2011
From: Steffen Mueller
October 11, 2011 09:04
Message ID: 4E9468E8.firstname.lastname@example.org
This is regarding Father Chrysostomos' changes to fix the current
behaviour of XS AUTOLOAD methods, specifically commits
8fa6a40953ef88573ed3cbbb37666e7b72dec7dd and the tests in
My network connection is too slow/bad/mobile to searching for the bug,
but I know there's a perlbug that I filed about AUTOLOAD methods
implemented in XS. In a nutshell, because Doug's hack prevents $AUTOLOAD
from being set at all, the XS AUTOLOAD cannot be inherited/reused. The
SvPVX of the CV only contains the method name, not the class, so it's
not sufficient for figuring out for which class the AUTOLOAD was invoked.
I hope my memory didn't fail me, but it'll be some time before I can
check for sure.
This bug in conjunction with the general badness of the SvPVX(CV) abuse
makes me think that unless a CPAN grep turns up many examples, it may be
worth breaking the long-standing behaviour. If we don't, does anybody
have an idea how to efficiently include the namespace part of $AUTOLOAD?
by Steffen Mueller