[fpc-pascal] += property bug?

Martin fpc at mfriebe.de
Wed Aug 14 23:18:27 CEST 2019


On 14/08/2019 23:05, Bernd Oppolzer wrote:
>
> 4 characters in your case, but if you have for example:
>
> CALL_LVL [ LOCAL_CALL ] := CALL_LVL [ LOCAL_CALL ] + 1 ;
   inc(CALL_LVL [ LOCAL_CALL ],1)

"inc(,)"  vs "+="
6 vs 2 chars

4 more.

Yes, "inc" does not work for properties. But neither does +=.

>
> and you write instead:
>
> CALL_LVL [ LOCAL_CALL ] += 1;



More information about the fpc-pascal mailing list