Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2023-10

operator := in mode delphi?

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin Frb

Is there a modeswitch to enable it?

Because currently I am getting an error in mode delphi.

Sven Barth
to Martin Frb

Martin Frb via fpc-pascal schrieb am Di.,
24. Okt. 2023, 23:30:

Show quoted text 5 lines
Is there a modeswitch to enable it? Because currently I am getting an error in mode delphi.

In mode Delphi it's called "Implicit" as Delphi does not support symbolic operator overloads.

Regards,
Sven

Martin Frb
to Sven Barth

Thanks, but that isn't the part of the answer I was looking for....

I was looking for a global operaton :=

That could be used for an array (rather than just record/class).

But according to the docs that I found that is not possible

Sven Barth wrote 19 lines
Martin Frb via fpc-pascal schrieb am Di., 24. Okt. 2023, 23:30: Is there a modeswitch to enable it? Because currently I am getting an error in mode delphi. In mode Delphi it's called "Implicit" as Delphi does not support symbolic operator overloads. Regards, Sven _______________________________________________ fpc-pascal maillist https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Sven Barth
to Martin Frb

Martin Frb via fpc-pascal schrieb am Mi.,
25. Okt. 2023, 21:38:

Show quoted text 8 lines
Thanks, but that isn't the part of the answer I was looking for.... I was looking for a global operaton := That could be used for an array (rather than just record/class). But according to the docs that I found that is not possible

Correct.

Delphi does not support global operator overloads and not every feature that is available in FPC is made available in mode Delphi the main purpose of which is to compile Delphi code after all.

Regards,
Sven

Sven Barth wrote 24 lines
Martin Frb via fpc-pascal schrieb am Di., 24. Okt. 2023, 23:30: > Is there a modeswitch to enable it? > > > Because currently I am getting an error in mode delphi. > In mode Delphi it's called "Implicit" as Delphi does not support symbolic operator overloads. Regards, Sven > _______________________________________________ fpc-pascal maillist - _______________________________________________ fpc-pascal maillist - https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal