On Mon, Feb 05, 2018 at 09:20:16PM +0000, Nick Sabalausky via Digitalmars-d wrote: > Ouch. I guess "the real WTF" is that 2's complement leads to > supporting one value that cannot be negated.
By that logic, we should issue the same warning for negating ints, but we don't. > But still, I thought we had value range propagation rules to avoid > this sort of nonsense when possible (such as the example above)? VRP doesn't help when the code doesn't have compile-time known values, such as in the non-reduced code my example snippet was reduced from. T -- There are two ways to write error-free programs; only the third one works.
