Re: Plugin architecture

[email protected] ("Christopher J. Madsen")
Newsgroups perl.module.build
Message-ID <[email protected]>
Eric Wilhelm wrote:
> # from Christopher J. Madsen
> # on Saturday 15 March 2008 23:43:
> 
>> sub Module::Build::method_name {
>>    _call_method_with_hooks(@_, 'method_name')
>> }
>>
>> So we'd have overhead only on the methods that actually got hooked.
>> This is made simpler because M::B is essentially an empty class.
> 
> The emptiness of M::B is where the platform-specific subclass comes into 
> play. 

This doesn't interfere with that.  _call_method_with_hooks will call 
$builder->SUPER::method_name to let the platform-specific subclass do 
its work.  (Unless a plugin decided to override.)

We certainly could introduce a new empty class, but I don't see the need.

-- 
Chris Madsen                                          [email protected]
   --------------------  http://www.cjmweb.net  --------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.