unsigned < 0

bearophile bearophileHUGS at lycos.com
Fri Feb 11 13:05:31 PST 2011


Iain Buclaw:

> You also need to watch out for code like this too:
> if (T.min < 0) { ...
> As that could possibly trigger off unsigned < 0 warnings too.

I was not talking about warnings. I was talking about changing the D language, turning that into a _error_ if x is unsigned.

Bye,
bearophile


More information about the Digitalmars-d mailing list