[fpc-devel] Operator overloading and {$mode delphi}

Bart bartjunk64 at gmail.com
Sun Apr 14 17:21:57 CEST 2019


On Sun, Apr 14, 2019 at 8:26 AM Michael Van Canneyt
<michael at freepascal.org> wrote:

> I added a table with the delphi operator names, mentioned that they can be
> used in operator definitions, but that they must be used in Delphi mode.

If I understand the delphi documentation correctly the you can only
overload operaters using class methods for records or classes?
So, you cannot overload an operator to add an ordinal to a string
(which we can in fpc).

-- 
Bart



More information about the fpc-devel mailing list