Ryan Joseph <[email protected]> schrieb am Mo., 10. Juni 2019, 15:28:

>
>
> > On Jun 10, 2019, at 9:25 AM, Sven Barth via fpc-devel <
> [email protected]> wrote:
> >
> > The operator for assigning one class instance to another exists and is
> internal thus it is not allowed to be overloaded.
> >
>
> Is that true for binary operators also? The same principle could apply to
> them also and perhaps solve the problem you posted below.
>

The +-operator is not defined internally thus it is allowed to be
overloaded. (is it really that hard to understand? If you can use an
operator in code without declaring an operator overload then this operator
is internal and not allowed to be overloaded).

Regards,
Sven

>
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to