+= does work for variables, even Strings.

AFAIR, there already has been a discussion about += and friends for properties.

In fact I don't see why the compiler not just generates "x.a := x.a + y" from "x.a += y" before doing any code generating, disregarding what x.a is. Of course an error message will occur if x.a is not writable for any reason.

Thanks,
-Michael
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to