[fpc-devel] interfaces vs classes in dll
Marc Weustink
marc.weustink at cuperus.nl
Thu Nov 29 18:42:38 CET 2007
Mattias Gaertner wrote:
> Lazarus has the IDEIntf, the API for IDE plugins.
>
> What is better in this case: classes or interfaces?
> What if someday there are packages?
> What if someday there is a closed source dll plugin?
3x Interfaces (you need a shared memmanager in this case)
Additional advantage with interfaces is that you can have different
versions of an interface implemented by the same class
I can imagine that some interface needs to be extended someday, then
adding a newer version (=copy + new guid + extention) of the interface
won't break older plugins.
Marc
More information about the fpc-devel
mailing list