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

Graeme Geldenhuys graemeg.lists at gmail.com
Fri Nov 30 11:36:30 CET 2007


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;





Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-devel mailing list