that is bug?

kdevel kdevel at vogtner.de
Sat Apr 7 20:57:23 UTC 2018


On Saturday, 7 April 2018 at 16:52:00 UTC, Patrick Schluter wrote:
[...]
> The odd man out is C++ [1], assignment has higher precedence 
> because of right to left evaluation.

Your reference [1] is not even a witness to your claim. The 
precedence table says that the "Ternary conditional" has the 
*same* precedence as the "Direct Assigment", namely "16".

You may find an in-depth discussion of the C++ case in

https://stackoverflow.com/questions/7499400/ternary-conditional-and-assignment-operator-precedence


More information about the Digitalmars-d mailing list