[lazarus] Remove interface class?

Vincent Snijders vslist at mail.cwazy.co.uk
Thu Dec 18 03:57:08 EST 2003


On Thu, 18 Dec 2003 10:00:07 +0100
Micha Nelissen <micha at neli.hopto.org> wrote:

> Hi,
> 
> As the code is, currently, we can remove the interface class. The
> global interface functions will stay and be pointers and the
> interfacebase will implement them as it does now. The platform
> interfaces can rewrite the functions as needed, and the private
> variables can be global variables private to the unit (as there is
> only one instance of the interface class). 
What do you mean by interface class: the TGTKObject and TWin32Object
classes?
What are the global interface functions?

> Advantages:
> 
> 1) possibly remove IF_BASE_MEMBER stuff because only one global 
> declaration of each interface function
That is why we have an api wizard. 
> 2) speedup and code reduction, because the self pointer doesn't have
> to be passed anymore.
I think these are minor issues. I don't think it speeds up very much.
But I haven't done any profiling.
> 
> What do you think?
> 
> Micha.






More information about the Lazarus mailing list