in reply to •Re^3: Auto-generated constructors not finding correct SUPER?
in thread Auto-generated constructors not finding correct SUPER?
I am confused by your answer, when I try this:
I get the same error as before. And when I try this:{ eval "package $pkg;"; no strict 'refs'; *{$pkg . '::new'} = sub { (shift)->SUPER::new(%{$fields}) }; }
I get the same error as well. It would seem to me that SUPER is determined at compile time, is that true?{ no strict 'refs'; *{$pkg . '::new'} = sub { eval "package $pkg;"; (shift)->SUPER::new(%{$fields}) }; }
Does the whole subroutine need to be eval-ed?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re^5: Auto-generated constructors not finding correct SUPER?
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 |