On 11/19/14 12:40 PM, bearophile wrote:
Andrei Alexandrescu:

There are related bugs in Java too, e.g. I remember one in binary
search where (i + j) / 2 was wrong because of an overflow.

This is possible in D too.


Also, Java does have a package for unsigned integers so apparently
it's necessary.

This is irrelevant. No one here is saying that a system language should
not have unsigned values. The discussion here is about the type of array
lengths.

I think we're in good shape with unsigned. -- Andrei

Reply via email to