Re: [Maypole-dev] Patch - Maypole::Application inheritance.

From: Simon Flack (sf at flacks.net)
Date: Mon Jan 24 2005 - 21:11:26 GMT


Marcus Ramberg wrote:
> Using Maypole::Application to load your plugin leads to a problem when
> running more than one application, because they will share @ISA, so that
> both applications will have the same plugins. Attached for discussion is
> a patch that will set up a <MyApplication>::Application proxy, which
> loads the required modules for your application.
>
> If you guys thinks it's a good solution, I'll apply it. It might be
> better to set it up as Maypole::Application::<MyApplication> to avoid
> polluting the application namespace tho?

I applied the patch to 2.08. I'm not sure what the benefits are of
adding another namespace, so it only modifies the caller's @ISA. We
could add a proxy class for the next version, but I'm curious to know
what we gain by doing it like that. It reminds me of some of the mixin
implementations on CPAN.

Simon

_______________________________________________
maypole-dev mailing list
maypole-dev at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole-dev



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT