in reply to Re: Re: Weird inheritance and SUPER
in thread Weird inheritance and SUPER
No.
The method call, Qprime::bar has been resolved already. Now another method call, Q::SUPER::bar, needs to be resolved.
You are using the wrong tool. If you got what you say you want you would have a loop repeatedly calling Q::bar.
Usually SUPER is used to add functionality to a method:
Changing the order of the @Qprime::ISA elements might be a possible solution.sub Child::foo { SUPER::foo; # do parent functionality blah; # add child functionality }
If the hierarchy is carved in stone, i.e. you can't even change an @ISA, then you might make explicit calls: $self->P::bar.
|
|---|