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:
@ISA = qw(Display::Base);
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.