On 2013-11-19 16:56, Andrei Alexandrescu wrote:
You're not operating with the correct definitions of "expression" and "statement".
I would consider this a statement: https://github.com/jacob-carlborg/dstep/blob/master/dstep/translator/Translator.d#L285..L286
And this an expression: https://github.com/jacob-carlborg/dstep/blob/master/dstep/translator/Translator.d#L288
The first would be an if-statement [1] and the second would be an assign expression [2]. Am I wrong?
[1] http://dlang.org/statement.html#IfStatement [2] http://dlang.org/expression.html#AssignExpression -- /Jacob Carlborg
