Am 14.04.2019 um 17:21 schrieb Bart:
On Sun, Apr 14, 2019 at 8:26 AM Michael Van Canneyt
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
On Sun, Apr 14, 2019 at 8:26 AM Michael Van Canneyt
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
On Sun, 14 Apr 2019, Sven Barth via fpc-devel wrote:
On 4/13/19 11:28 PM, Bart wrote:
Hi,
What am I missing?
In mode Delphi you need to use the names Delphi uses for the operators:
http://docwiki.embarcadero.com/RADStudio/Rio/en/Operator_Overloading_(Delphi)
Maybe we should mention that
On Sat, Apr 13, 2019 at 6:04 PM Sven Barth via fpc-devel <
fpc-devel@lists.freepascal.org> wrote:
> Maybe we should mention that in the documentation...
>
AFAIK it's never been possible to use FPC-style operator overloading in
mode Delphi... is it supposed to be allowed?
For example:
unit
On 4/13/19 11:28 PM, Bart wrote:
> Hi,
>
> This example is taken from the documentation:
> https://www.freepascal.org/docs-html/ref/refse103.html
>
> {$mode delphi} //compiles in {$mode objfpc} or {$mode fpc}
> {$h+}
>
> Type
> TMyRec = record a,b : integer; end;
>
> operator = (x,y :
Hi,
This example is taken from the documentation:
https://www.freepascal.org/docs-html/ref/refse103.html
{$mode delphi} //compiles in {$mode objfpc} or {$mode fpc}
{$h+}
Type
TMyRec = record a,b : integer; end;
operator = (x,y : TMyRec) r : string;
begin
if (x.a=y.a) and (x.b=y.b) then