in reply to Re: OOP: Plugin Style Development
in thread OOP: Plugin Style Development
Here's where the windows OOP brainwashing kicks in for me:
package Display::LDAP; @ISA = qw(Display::Base); sub new sub foo sub bar
If I was the one making the LDAP module, no problems. But what if someone else is doing it? What bugs me is that if I decide to start using Display::Foo instead of Display::LDAP, there's no way to know if Display::Foo is going to play nice, or ignorant for that matter.
I was just looking at Class::Contract, but that's overkill for now
Not to mention, if Display::LDAP overrides all the methods that Display::Base exports, then why use Display::Base at all? I've seen modules whos 'public' subs call private "_" subs inherited form the base class. But that's just like any other method, you can't assume anything about the overloaded base class. If it decides not to call the private methods from base, game's off anyways.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Use sane Design (was Re3: OOP: Plugin Style Development)
by dragonchild (Archbishop) on Jul 22, 2002 at 19:58 UTC | |
by jk2addict (Chaplain) on Jul 22, 2002 at 20:27 UTC | |
by dragonchild (Archbishop) on Jul 22, 2002 at 20:30 UTC |