[fpc-pascal] Operator not overloaded

Sven Barth pascaldragon at googlemail.com
Fri Jun 24 23:29:44 CEST 2022


Thomas Kurz via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am
Fr., 24. Juni 2022, 15:33:

> Thank you very much, declaring the operator within the record does indeed
> solve the issue.
>
> Just to be sure in case I might need it some day: Does this mean, if I
> need e.g. a comparison operator for a specialized TPair, I would declare a
> record class helper and define the operator there?
>

No, because for helpers the same restrictions apply as they do for global
operators.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20220624/e41dba98/attachment.htm>


More information about the fpc-pascal mailing list