Precedences of unary minus and dot operators
deed
none at none.none
Fri Nov 8 07:19:04 PST 2013
> For me it's weird... :-)
import std.math;
assert (-3.abs == 0 - 3.abs);
assert ((-3).abs == (0 - 3).abs);
Makes sense..
More information about the Digitalmars-d
mailing list