[fpc-pascal] Corba Interfaces and IInterface query

Sven Barth pascaldragon at googlemail.com
Sun Nov 14 14:36:39 CET 2010

On 14.11.2010 14:16, Graeme Geldenhuys wrote:
> On 14 November 2010 14:18, Sven Barth wrote:
>> IInterface and IUnknown are the same in Delphi 7 as well as they are in FPC
>> (although they are aliased the other way round, but that doesn't matter).
> So then comes the big question — why have IInterface then, if it is
> exactly the same as IUnknown, yet not a known COM interface name?

Ask Borland why they decided to do it that way... perhaps they wanted a 
common ancestor for they case they ever decide to use non COM 
interfaces... (I can only guess here)

>> So I still say it's Delphi compatible
> Is it just me or is this phrase getting a bit monotonous.

The point is that this is the reason for many things in Free Pascal. It 
doesn't matter whether you like that reason or not. You and I either 
have to live with that or do something against it (you might argue that 
not everything is accepted, but that is not the topic here). Exceptions 
are mostly Generics, operator overloading and more generic enumerators 
(and the stricter syntax in *fpc modes). Oh, and let's not forget the 
existence of non-COM interfaces and the new constref parameter modifier. :)


More information about the fpc-pascal mailing list