[Solved]
[Solved]
Hi guys! I've read that Delphi allows multiple interface inheritance, based on this link: http://edn.embarcadero.com/article/29779
I'm using Delphi XE5 and my program does compile when I do this:
type IFoo= interface(IBar, IOtherBar)
['{9D5BED6D-00F3-4333-899F-FC9377F25FE2}']
function getFunc1: string;
property Func1: string read getFunc1;
The compiler says: [dcc32 Error] UIFoo.pas(9): E2029 ')' expected but ',' found
The error points to the first line (type IFoo...)
Is this a problem with Delphi XE5 or am I doing something wrong here? Based on the link, I believe the syntax is correct. Thanks in advance!
http://edn.embarcadero.com/article/29779
Hi guys! I've read that Delphi allows multiple interface inheritance, based on this link: http://edn.embarcadero.com/article/29779
I'm using Delphi XE5 and my program does compile when I do this:
type IFoo= interface(IBar, IOtherBar)
['{9D5BED6D-00F3-4333-899F-FC9377F25FE2}']
function getFunc1: string;
property Func1: string read getFunc1;
The compiler says: [dcc32 Error] UIFoo.pas(9): E2029 ')' expected but ',' found
The error points to the first line (type IFoo...)
Is this a problem with Delphi XE5 or am I doing something wrong here? Based on the link, I believe the syntax is correct. Thanks in advance!
http://edn.embarcadero.com/article/29779
Actually they didn't remove only that feature - they removed the whole product.
ReplyDeleteOk, guys. You're right. Thanks! I'll change my code and inherit both interfaces from the class itself. I think it'll work this way.
ReplyDeleteThere is a QP entry for this https://quality.embarcadero.com/browse/RSP-13300. Requesting introduce multiple inheritance for interfaces.
ReplyDeletequality.embarcadero.com - Log in - Embarcadero Technologies