[fpc-pascal] interface inheritance implementation

Sven Barth pascaldragon at googlemail.com
Mon Oct 12 14:31:41 CEST 2015


Am 11.10.2015 21:30 schrieb "David Emerson" <dle3ab at angelbase.com>:
> Do I have to implement all of the individual i_adder methods for
t_multiplier_and_adder? Is there no shortcut?

AFAIK you can only delegate interfaces that are part of the class'
declaration, in your case i_multiplier_and_adder, but not inherited
interfaces, in your case i_adder. I don't know whether we "copied" that
restriction from Delphi or if it is a shortcoming of our incomplete
delegation implementation (e.g. in Delphi you can delegate to properties
with a class type as well).

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20151012/8e9d6a90/attachment.html>


More information about the fpc-pascal mailing list