[fpc-pascal] Interface, _AddRef, _Release, etc.
Graeme Geldenhuys
graemeg.lists at gmail.com
Fri Sep 16 09:31:31 CEST 2011
On 15/09/2011 16:54, Marcos Douglas wrote:
>
> Well, wrong just because the language is so but not because is ilogical, right?
Unless you are well versed with interfaces, I would not go there. Mixing
object references and interface references (especially if reference
counting is enabled) - you are bound to run into trouble.
> Hm... interesting but what are the advantages?
None of the Windows'ism like COM's IUnknown, or Delphi's IInterface
(alias to IUnknown) on any non-Windows platforms.
> I want my code compiling in Delphi 7 too, so I can have problems with this?
Then stick with Delphi (Windows COM style) interfaces. I don't believe
Delphi support any other style of interface (eg: CORBA, XPCOM etc).
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
More information about the fpc-pascal
mailing list