next::method doesn't see UNIVERSAL superclasses #9837
Comments
From zefram@fysh.orgCreated by zefram@fysh.orgHere's a simple use of next::method: $ perl -Mmro -lwe '{ package U; sub foo { print "foo" } } { package M; @ISA = qw(U); sub foo { $_[0]->next::method } } M->foo' Here's something that should behave equivalently but doesn't: $ perl -Mmro -lwe '{ package UNIVERSAL; sub foo { print "foo" } } { package M; sub foo { $_[0]->next::method } } M->foo' The inheritance pattern is the same here; the differences are that $ perl -Mmro -lwe '{ package UNIVERSAL; sub foo { print "foo" } } { package M; @ISA = qw(UNIVERSAL); sub foo { $_[0]->next::method } } M->foo' In the work where I ran into this, I'm not actually working with UNIVERSAL In my situation, where the code that calls next::method is in a universal Perl Info
|
From anthony@derobert.netAlso happens when trying to, e.g., use next::method inside of a isa |
anthony@derobert.net - Status changed from 'new' to 'open' |
anthony@derobert.net - Status changed from 'open' to 'new' |
alecclews@gmail.com - Status changed from 'new' to 'open' |
From @cpansproutNow fixed as of a5cd004. |
@cpansprout - Status changed from 'open' to 'resolved' |
From @cpansproutOn Wed Dec 01 05:24:03 2010, sprout wrote:
That change caused more problems. See ticket #81098. So I’ve reverted it |
@cpansprout - Status changed from 'resolved' to 'open' |
Migrated from rt.perl.org#68654 (status was 'open')
Searchable as RT68654$
The text was updated successfully, but these errors were encountered: