[fpc-devel] FPC's Delphi mode incompatibility with Delphi compiler

Graeme Geldenhuys graemeg.lists at gmail.com
Tue Aug 26 13:01:04 CEST 2008


Hi,

We are using {$Mode Delphi} in the tiOPF project.  Three new functions
were added to one of the base classes. It compiled without issues
under FPC 2.2.3 (and whatever Michael van Canneyt uses).

I tried to compile that code under Delphi 7, after somebody reported
the issue under Delphi 2006.

    procedure   DoGetFieldBounds(const AFieldName: String; var
MinValue, MaxValue: Integer; var HasBounds: Boolean); virtual;
overload;
    procedure   DoGetFieldBounds(const AFieldName: String; var
MinValue, MaxValue: Extended; var HasBounds: Boolean); virtual;
overload;
    procedure   DoGetFieldBounds(const AFieldName: String; var
MinValue, MaxValue: TDateTime; var HasBounds: Boolean); virtual;
overload;


The 'virtual' and 'overload' keywords had to be swapped around for it
to compile under Delphi.

    procedure   DoGetFieldBounds(.....); overload; virtual;


Maybe the Delphi mode in FPC should check for that as well?


Regards,
  - Graeme -


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



More information about the fpc-devel mailing list