[fpc-devel] Another bug or feature

Sven Barth pascaldragon at googlemail.com
Mon Nov 25 19:18:14 CET 2013


Am 25.11.2013 15:13 schrieb "Juha Manninen" <juha.manninen62 at gmail.com>:

> unit Unit2;
> {$mode delphi}
> interface
>
> type
>   TRootMove = record
>     score: integer;
>     node_count: uint64;
>   end;
>
>   operator < (m1, m2: TRootMove) LessThan : Boolean;
>
> implementation
>
> operator < (m1, m2: TRootMove) LessThan : Boolean;
> begin
>   if m1.score <> m2.score then
>     result := m1.score < m2.score
>   else
>     result := m1.node_count < m2.node_count;
> end;
>
> end.

Neither global operators nor symbolic (<, >, etc.) operator names are
supported by Delphi.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20131125/8e1097cf/attachment.html>


More information about the fpc-devel mailing list