[fpc-devel] += with properties
mschnell at lumino.de
Wed Jan 12 16:57:00 CET 2011
On 01/12/2011 04:48 PM, Alexander Klenin wrote:
> Blindly replacing "a += b" with "a := a + b" may lead to a semantic change
> if "a" is an expression with side-effects.
> Nevertheless, I do think that implementing += for properties is a good idea,
> but unfortunately FPC developers disagree.
I do see that also properties could show site effects when used in a +=
expression, as they are accessed twice. But is this (in nearly all
cases) not exactly what the user would expect ?
More information about the fpc-devel