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

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Sep 11 14:22:51 CEST 2011

On 10 Sep 2011, at 22:32, Flávio Etrusco wrote:

> Does FPC allow overloading the += operator? If not, why?

It is translated into "x:=x+y" at the parser level, and overload resolving happens later. So once you overload "+" (and := if required), "+=" should also work.


More information about the fpc-pascal mailing list