Plugins should be objects
There should be a base class for plugins, which other plugins then inherit from.
Benefits:
- A plugin would only override the methods it needed to.
- The current ugliness of cloning EmptyPlugin and hacking out 90% of it would be gone
- Plugins could inherit from other plugins, adding new functionality
- Fewer globals
--
Contributors: MeredithLesly
Discussion
Several people agree with you.
See
PluginOOApi for a way to implement this in a "backward compatible" way.
The patch is against Cairo, and some of the changes made in Dakar allows for a more elegant and cleaner implementation.
--
RafaelAlvarez - 24 Mar 2006