[fpc-pascal] ++ and -- ( and +=, -=, ...)

Bernd Oppolzer bernd.oppolzer at t-online.de
Wed Jul 31 19:38:06 CEST 2013

Am 31.07.2013 11:33, schrieb Sven Barth:
> Technically it would be simple to change that as the corresponding 
> code is already available for the above mentioned situation, but it 
> would definitely change the semantics if the left side is e.g. an 
> array with a function as index accessor (as the function is then only 
> called once)...
I believe it would be much better if FPC would do this
(that is, evaluate the left side on assignments like a += b
only once), because the other program languages like
C and PL/1 that provide the same syntax do it the same way.
So people who use other languages too will be less surprised.

More information about the fpc-pascal mailing list