Re: [fpc-pascal] Explicit Interface implementation and inheritance

2021-08-15 Thread Jean SUZINEAU via fpc-pascal
Ooops, may be I hit reply too fast. It looks like when you write " TObjB = class(TObjA, IBBB)" you just implement IAAA twice. If you comment out IBBB   TImpB = class(TImpA{, IBBB})   public     procedure CallOfB;     //procedure IBBB.MethodB = CallOfB;   end; then the "No matching

Re: [fpc-pascal] Explicit Interface implementation and inheritance

2021-08-14 Thread Jean SUZINEAU via fpc-pascal
Le 15/08/2021 à 00:43, Dmitry Boyarintsev via fpc-pascal a écrit : Why is interface implementation not inherited, if explicit implementation is used. I guess this is because you can implement an interface through delegation too: https://www.freepascal.org/docs-html/ref/refse48.html type   

[fpc-pascal] Explicit Interface implementation and inheritance

2021-08-14 Thread Dmitry Boyarintsev via fpc-pascal
Hello, Why is interface implementation not inherited, if explicit implementation is used. Example. Here are interfaces: IAAA = interface procedure MethodA; end; IBBB = interface(IAAA) procedure MethodB; end; Interface IBBB inherits from IAAA Here's an implicit interface