in reply to How to use Inheritance with Inside-Out Classes and Hash Based Classes
You just hit the problem with inheritance - you're extending the class, which means you're tied to its implementation details.
My criteria for good software:
You might want to look at delegation. Basically, you would contain a File::Samba object and you forward any method you don't override to it. Take a look at Tree::Compat for an example.
My criteria for good software:
- Does it work?
- Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to use Inheritance with Inside-Out Classes and Hash Based Classes
by Perl Mouse (Chaplain) on Nov 16, 2005 at 09:53 UTC |
In Section
Seekers of Perl Wisdom