[fpc-pascal] Operator overloading with Text labels or words

Sven Barth pascaldragon at googlemail.com
Mon Jan 30 11:39:07 CET 2017


Am 30.01.2017 08:47 schrieb "Lars" <noreply at z505.com>:
>
> It's not possible to define an operator like:
>
> Operator AbcXyz(r : real; z1 : complex) z : complex;
> begin
> end;
>
> Is it?
>
> Has to be a symbol?

Only existing operators can be overloaded. For everything else, use a
function.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170130/527084c0/attachment.html>


More information about the fpc-pascal mailing list