[fpc-pascal] Custom operators for non-record types

Sven Barth pascaldragon at googlemail.com
Mon Jul 2 21:35:00 CEST 2012

Am 02.07.2012 16:51 schrieb "JC Chu" <jcchu <jcchu at acm.org>@ <jcchu at acm.org>
acm.org <jcchu at acm.org>>:
> ◦  Restrictions on the string-as-the-first-operand case have been relaxed.

I don't know whether you realized that already, but the
isbinaryoperatoroverloadable function is called twice: once with the order
given by the user and once with the order reversed as at least regarding
the possibility of overloading the binary operators are commutative. So the
checks for the first operand being a string indirectly also apply to the
right one being a string.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20120702/cd959845/attachment.html>

More information about the fpc-pascal mailing list