Equality operator chaining?

"Øivind" oivind.loe at gmail.com
Sun Nov 10 11:08:31 PST 2013


>     int b = x == y == z;

Although GCC accepts the code, I don't think it does what you 
think here. It will basically z will be compared with '1', which 
is the value of (4 == 4), and b will become 0, or false.







More information about the Digitalmars-d mailing list