in reply to Re^5: goto superclass method
in thread goto superclass method
You claimed the current __PACKAGE__ affects the result of Foo->SUPER::can( 'bar' )Nothing of the kind. Why do you keep saying SUPER::can? That's really weird. That's "the can method that isn't in the current class". Unless you've implemented a local "can" method, that's gonna be UNIVERSAL::can.
Please go back and reread what I wrote. It's still true, and your example doesn't show anything to the contrary. I said that SUPER:: is affected by __PACKAGE__, and __PACKAGE__ is not affected by the package name of the subroutine, but only by package directives. Your "infinite" loop is for reasons other than what you state, because your hypothesis is incorrect.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: goto superclass method
by Aristotle (Chancellor) on Dec 23, 2004 at 00:14 UTC | |
by merlyn (Sage) on Dec 23, 2004 at 00:22 UTC | |
by Aristotle (Chancellor) on Dec 23, 2004 at 00:26 UTC | |
by merlyn (Sage) on Dec 23, 2004 at 00:30 UTC | |
by Aristotle (Chancellor) on Dec 23, 2004 at 00:40 UTC |