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

Michael Van Canneyt michael at freepascal.org
Tue Aug 26 13:33:43 CEST 2008



On Tue, 26 Aug 2008, Graeme Geldenhuys wrote:

> 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.

Now you'll suspect that I knew fully well why I did the overtype bug ;)

Michael.



More information about the fpc-devel mailing list