[fpc-pascal] Overloading the increment operator (+=)

Marcos Douglas md at delfire.net
Sat Sep 10 22:38:42 CEST 2011

2011/9/10 Flávio Etrusco <flavio.etrusco at gmail.com>
> Hello,
> If write a declaration without result it complains about invalid
> syntax; if I add a result it says "impossible operator overload".
> Does FPC allow overloading the += operator? If not, why?

You do not need overload the += operator, just do it in := operator.

Marcos Douglas

More information about the fpc-pascal mailing list