Juha Nieminen wrote:
> On 04/15/2010 11:41 AM, DaveB wrote:
>> The Java designers didn't think there was any need to have unsigned
>> integers. Probably because they handle the errors well and don't
>> leave as much room for undefined behavior? Also, they have a
>> 16-bit char for Unicode. Is there anything on the table for the
>> next C++ standard in regards to improving the reliability of
>> coding with integers or is the current state of affairs something
>> that has to be dealt with for compatibility reasons? I'm not sure
>> what all the issues are and whether they can be corrected even.
>
> If you are shifting bits to the right, it makes a big difference
> whether the type is signed or unsigned.
>
And Java "solves" that by adding an additional shift operator >>>.
Bo Persson