[fpc-pascal] Supports() only checks declared interfaces?

Paul Ishenin webpirat at mail.ru
Thu Jan 6 17:54:22 CET 2011


06.01.2011 23:25, Michalis Kamburelis wrote:
> So, the natural next question: is there some construct similar to the
> Supports() function, that avoids this problem? That is, something that
No.
> detects that class TB supports both IA and IB interfaces, even though
> it's declared only as "TB = class(TInterfacedObject, IB)" ?
TB is declared as it only implements IB.
> Or is my only choice to just declare "TB = class(TInterfacedObject, IA,
> IB)" ?
Yes.

Best regards,
Paul Ishenin



More information about the fpc-pascal mailing list