|
|
| The stupid question is the question not asked | |
| PerlMonks |
Re: Dynamically wrapping ancestor method callsby rafl (Friar) |
| on Dec 11, 2006 at 14:52 UTC ( #589053=note: print w/ replies, xml ) | Need Help?? |
|
It was me who asked that question on #perl. I could not think of a clean solution to solve that problem using subclassing. Therefor I now use a pattern like this:
This creates a wrapper class around the class I initially tried to subclass and delegates all method calles to the inside object using AUTOLOAD. This works pretty well so far. Cheers, Flo
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||