More to the point, why?
Adding signed/unsigned would add 4 new types to the language and introduce a bunch of new and not terribly obvious rules governing type conversions.
See the bits on signed/unsigned at http://publications.gbdirect.co.uk/c_book/chapter2/expressions_and_arithmetic.html to get some idea of how much complexity unsigned can add. Note the quote:
The moral is to steer clear of unsigned numbers unless you really have to use them, and to be perpetually on guard when they are mixed with signed numbers.
Unsigned tends to have a 'viral' effect on code, too. Once you start using unsigned, there is a tendancy for it to 'infect' other bits of your code forcing you to declare other variables unsigned. This would be esp. true in Max which doesn't do 'warnings'.
I haven't used unsigned in my own C++ code for a long time. Several C++ books I've read on the subject reckon its best to avoid using unsigned. Java gets along quite nicely without it.
And on the 'pro' side...? One extra bit for positive only values, and not having to go 'And >=0' every now and then.
Adding signed/unsigned would add 4 new types to the language and introduce a bunch of new and not terribly obvious rules governing type conversions.
See the bits on signed/unsigned at http://publications.gbdirect.co.uk/c_book/chapter2/expressions_and_arithmetic.html to get some idea of how much complexity unsigned can add. Note the quote:
The moral is to steer clear of unsigned numbers unless you really have to use them, and to be perpetually on guard when they are mixed with signed numbers.
Unsigned tends to have a 'viral' effect on code, too. Once you start using unsigned, there is a tendancy for it to 'infect' other bits of your code forcing you to declare other variables unsigned. This would be esp. true in Max which doesn't do 'warnings'.
I haven't used unsigned in my own C++ code for a long time. Several C++ books I've read on the subject reckon its best to avoid using unsigned. Java gets along quite nicely without it.
And on the 'pro' side...? One extra bit for positive only values, and not having to go 'And >=0' every now and then.