[fpc-pascal] Interface performance
Tony Whyman
tony.whyman at mccallumwhyman.com
Fri Nov 11 11:01:37 CET 2016
On 11/11/16 09:46, Ryan Joseph wrote:
> I just don’t plain get it. The examples given seem to be a redundant property that could be replaced with a reference the interface itself.
Interface delegation is really just an optimisation and is equivalent to
defining a set of methods to support the interface and each one then
calls the same method in the "delegated" interface. IMHO, extending the
definition of a property for this optimisation isn't exactly intuitive.
Delegated interfaces cause even more problems with reference counted COM
interfaces. Unless you are really confident in your use of interfaces -
just don't go there.
More information about the fpc-pascal
mailing list