[fpc-devel] {$Interfaces Corba} and TInterfacedObject

Florian Klaempfl florian at freepascal.org
Fri Nov 30 11:37:40 CET 2007


Graeme Geldenhuys schrieb:
> On 30/11/2007, Florian Klaempfl <florian at freepascal.org> wrote:
>>> and the interface
>>> method resolution clauses would be useful too.
>> What this?
>>
> 
> 
> I think he means when a class implements a inferfaces and somewhere in
> the class hierarchy, there already exists a method with the same name.
>  You can then map the Interfaces's methods to new names.  Here is a
> quick example I copied from the net.
> 
> 
> TComObject = class(TObject, IUnknown, ISupportErrorInfo)
>    protected
>    { IUnknown }
>    function IUnknown.QueryInterface = ObjQueryInterface;
>    function IUnknown._AddRef = ObjAddRef;
>    function IUnknown._Release = ObjRelease;

This works iirc too?



More information about the fpc-devel mailing list