[fpc-pascal] Specifying a Interface type via $Interfaces

Dean Zobec dean.zobec at gmail.com
Thu Oct 11 18:42:12 CEST 2007


2007/10/11, Cesar Romero <cesarliws at gmail.com>:
> Graeme,
> > Hi,
> >
> >
> Hi
> > I want to start learning the use of Interfaces. It's a language
> > feature I have by-passing for some time now. From what I have read
> > this seems to be a handy language feature to learn.
> >
> > In the FPC documentation in mentions I can have COM or CORBA (Java)
> > interface types.  Could somebody please explain the difference.  And
> > why would I use one over the other?
> >
> Im not sure, but I think that the one difference is about time life:
> COM uses ref count

> CORBA should be somethink like garbage collection
There's no garbage collection, you have to free the object instance
explicitly with the
Corba type of interfaces in FPC. Corba interfaces do not descend from IUnknown.

Dean



More information about the fpc-pascal mailing list