New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
next::method loops on UNIVERSAL superclasses #10915
Comments
From zefram@fysh.orgCreated by zefram@fysh.orga5cd004 and 1726bc1 supposedly fixed [perl #68654] "next::method $ perl5.13.7 -Mmro -lwe '{ package UNIVERSAL; sub foo { print "foo"; $_[0]->next::method; } } M->foo' More extensive demonstration: $ perl5.13.8 -Mmro -lwe '{ package A; sub foo { print "A foo, next is ", $_[0]->next::can; } } { package B; sub foo { print "B foo, next is ", $_[0]->next::can; } } @UNIVERSAL::ISA=qw(A B); { package M; sub foo { $_[0]->next::method } } print "A::foo is ", \&A::foo; print "B::foo is ", \&B::foo; print "M foo is ", \&M::foo; M->foo; M->A::foo; M->B::foo' I must confess, I was worried by the "retry with UNIVERSAL" description It seems to me that next::can is too late a stage for the special-casing Perl Info
|
From @cpansproutOn Tue Dec 21 12:23:19 2010, zefram@fysh.org wrote:
That sounds like a good idea. I am not comfortable with such a change So perhaps I should just revert those two fixes for now. (After all, an |
The RT System itself - Status changed from 'new' to 'open' |
From @obraOn Sun 26.Dec'10 at 13:31:36 -0800, Father Chrysostomos via RT wrote:
That seems reasonable, yes. :/ Thanks for paying attention to this. -j |
From @cpansproutOn Sun Jan 02 21:09:45 2011, jesse wrote:
|
@cpansprout - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#81098 (status was 'resolved')
Searchable as RT81098$
The text was updated successfully, but these errors were encountered: