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

Sven Barth pascaldragon at googlemail.com
Tue Jul 30 20:34:38 CEST 2013


On 30.07.2013 20:24, Mattias Gaertner wrote:
> On Tue, 30 Jul 2013 20:12:29 +0200
> Sven Barth <pascaldragon at googlemail.com> wrote:
>
>> On 30.07.2013 18:16, Marco van de Voort wrote:
>> [...]
>> 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.

Yes, that's right. I forgot to mention that restriction...

Regards,
Sven




More information about the fpc-pascal mailing list