Fun surprising things

Stanislav Blinov stanislav.blinov at gmail.com
Wed Oct 31 14:18:02 UTC 2018


On Wednesday, 31 October 2018 at 14:00:14 UTC, bauss wrote:

> If your answer is "10" then you're wrong.

https://dlang.org/spec/expression.html#order-of-evaluation

> 2. Implementation Defined:
>    The order of evaluation of the operands of AssignExpression.
> ...

So indeed, both answers are "right".


More information about the Digitalmars-d mailing list