> On Feb 2, 2020, at 3:23 PM, Sven Barth via fpc-pascal 
> <fpc-pascal@lists.freepascal.org> wrote:
> 
> As I had explained in the other thread some months ago interfaces in Object 
> Pascal mean literally that the type can be cast to the specified interfaces. 
> Parent interfaces are *not* part of this. If you want this you need to first 
> cast the class to IClassName2, then the "interface inheritance" mechanism can 
> take over. 
> 

Hmm, isn't that inconsistent given how classes work? if TClassName implements 
IClassName2 then doesn't it also implement IClassName1 by definition?

Regards,
        Ryan Joseph

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to