in reply to Auto-generated constructors not finding correct SUPER?
So, for example, your code doesn't work:
nor does this:package Wrong; *{'Right::new'} = sub { ... SUPER ... };
but this does:package Wrong; sub Right::new { ... SUPER ... }
as does this:package Right; sub new { ... SUPER ... }
package Wrong; sub Right::new { package Right; ... SUPER ... }
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Auto-generated constructors not finding correct SUPER?
by dragonchild (Archbishop) on Jan 10, 2005 at 13:53 UTC | |
by merlyn (Sage) on Jan 10, 2005 at 14:26 UTC | |
by stvn (Monsignor) on Jan 10, 2005 at 17:39 UTC | |
by merlyn (Sage) on Jan 10, 2005 at 17:39 UTC | |
by stvn (Monsignor) on Jan 10, 2005 at 18:37 UTC | |
by stvn (Monsignor) on Jan 10, 2005 at 20:52 UTC |