[fpc-devel] Another bug or feature
Juha Manninen
juha.manninen62 at gmail.com
Tue Nov 26 08:14:47 CET 2013
On Mon, Nov 25, 2013 at 8:18 PM, Sven Barth <pascaldragon at googlemail.com> wrote:
> Neither global operators nor symbolic (<, >, etc.) operator names are
> supported by Delphi.
You are right.
Now looking more carefully at the example critterchess code :
http://sourceforge.net/projects/critterchess
it is already partly ported for FPC. There is no Lazarus project but
the code has IFDEFs:
{$ifndef FPC}
class operator TRootMove.LessThan(m1, m2: TRootMove): boolean;
{$else}
operator < (m1, m2: TRootMove) LessThan : boolean;
{$endif}
The converter defines Mode Delphi and FPC is already defined. The
result is illegal code.
This is a good example of a strange code variation the converter gets.
It cannot tackle all of them.
Juha
More information about the fpc-devel
mailing list