[fpc-pascal] Re: ++ and --

Marco van de Voort marcov at stack.nl
Tue Jul 30 20:37:16 CEST 2013


In our previous episode, Mattias Gaertner said:
> > Also +=, etc are not true operators in FPC like they are in e.g. C++, 
> > but they are internally translated to "a := a + b", etc. So potential 
> > sideeffects need to be remembered here.
> 
> That's not entirely true. For example "a:=a+b" is allowed for
> properties, while "a+=b" is not allowed for properties.

I think Sven meant that a is only evaluated once. (in case it is an
expression). Not that it operates on all types.



More information about the fpc-pascal mailing list