[fpc-pascal] operator := in mode delphi?

Sven Barth pascaldragon at googlemail.com
Wed Oct 25 23:49:38 CEST 2023


Martin Frb via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am Mi.,
25. Okt. 2023, 21:38:

> 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

On 24/10/2023 23:51, Sven Barth via fpc-pascal wrote:
>
> Martin Frb via fpc-pascal <fpc-pascal at lists.freepascal.org> 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 at lists.freepascal.orghttps://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20231025/1042b95f/attachment.htm>


More information about the fpc-pascal mailing list