On Sun, Sep 11, 2011 at 9:22 AM, Jonas Maebe <jonas.ma...@elis.ugent.be> wrote: > > 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. > > > Jonas >
Yes, I realize this. I'm revisiting the "StringBuilder" issue, and "+=" can't be efficiently implemented with two operations (since concatenating the operand would be unexpected to the user...). -Flávio _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal