Am 11.10.2015 21:30 schrieb "David Emerson" <dle...@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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to