Think about Loose Coupling | |
PerlMonks |
Re3: The costs of packagesby dragonchild (Archbishop) |
on Sep 17, 2003 at 13:33 UTC ( [id://292111]=note: print w/replies, xml ) | Need Help?? |
Inheritance is not a requirement nor even desirable for my application.
It may not be for you, but this sounds like a really neat trick to keep in the toolbox, for similar issues. I would think that inheritance would work because the class would be compiled and its @ISA be set. Then, when a method is called, dispatch would take effect, right? ------ The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6 Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
In Section
Seekers of Perl Wisdom
|
|