"++" vs "+=" on function parameter
user1234
user12134 at 12.de
Sun Mar 8 10:16:56 UTC 2026
On Sunday, 8 March 2026 at 03:30:55 UTC, claptrap wrote:
> [...]
> Just seems like p++ should behave like p+=N for parameters, I
> mean if you had never seen that syntax before you would
> probably assume similar behaviour.
1. This would break code
2. that would be inconsistent with the C version
3. that would be globally inconsistent with the definition, that
can be reduced to "return the value of the sub-expression before
the side-effect".
More information about the Digitalmars-d
mailing list