Any reason why ++1 is not folded to a new constant?

Mathias LANG geod24 at gmail.com
Thu Oct 22 10:33:32 UTC 2020


On Thursday, 22 October 2020 at 09:49:32 UTC, Patrick Schluter 
wrote:
>
> The question is then: why did it compile?
> gcc gives
>    error: lvalue required as increment operand
>
> when one tries it in C.

It doesn't ? https://run.dlang.io/is/sk4kKw


More information about the Digitalmars-d mailing list