[fpc-devel] Using Macros for IInterface
florian at freepascal.org
Thu Sep 27 20:16:15 CEST 2012
Am 26.09.2012 13:27, schrieb Graeme Geldenhuys:
> On 2012-09-26 11:40, Marco van de Voort wrote:
>> It means the interface will always be constref, and thus no ifdefing
>> in FPC
>> (if you don't support <2.6.0) will be necessary.
> For fpGUI, I only support the latest stable release of FPC, so that
> would be 2.6.0. So I should be fine with removing that IFDEF then.
>> But users don't need to ifdef if they don't use compilers that
>> don't support constref (FPC 2.4 series and delphi)
> Umm, so here might be a problem. tiOPF is a shared code base between FPC
> and Delphi. Does the compiler mode (we use mode delphi in tiOPF) not
> affect the constref? After all, it seems Delphi doesn't have a constref
> correct? So in mode delphi the IInterface should always be defined in a
> Delphi compatible manner?
You care about Delphi compatibility?
More information about the fpc-devel