[Issue 18743] ConditionalExpression and AssignExpression should require parentheses
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 7 21:52:58 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18743
--- Comment #2 from David Nadlinger <code at klickverbot.at> ---
(Note that this _is_ part of the specification in form of the grammar.
Assignment is defined as
AssignExpression:
ConditionalExpression
ConditionalExpression = AssignExpression
ConditionalExpression += AssignExpression
ConditionalExpression -= AssignExpression
ConditionalExpression *= AssignExpression
ConditionalExpression /= AssignExpression
ConditionalExpression %= AssignExpression
ConditionalExpression &= AssignExpression
ConditionalExpression |= AssignExpression
ConditionalExpression ^= AssignExpression
ConditionalExpression ~= AssignExpression
ConditionalExpression <<= AssignExpression
ConditionalExpression >>= AssignExpression
ConditionalExpression >>>= AssignExpression
ConditionalExpression ^^= AssignExpression
which unambiguously specifies the precedence.)
--
More information about the Digitalmars-d-bugs
mailing list