Why does D change operator precedence according to C/C++ ?
Andrea Fontana
nospam at example.com
Mon Apr 2 06:01:59 PDT 2012
Parentesys are needed only where there's ambiguity with
precedence.
a > b > c is ambiguous (we need parentesys)
a == b > c is amibiguous (we need parentesys because == and >
have the same precedence)
a == b && c is not ambiguous ( && and == haven't the same
precedence so we don't need parentesys)
On Monday, 2 April 2012 at 12:02:33 UTC, deadalnix wrote:
> Le 02/04/2012 13:10, Stewart Gordon a écrit :
> So basically, the precedence doesn't matter because any
> situation where it matter is illegal anyway ?
More information about the Digitalmars-d
mailing list