[OT] The Usual Arithmetic Confusions

Mark smarksc at gmail.com
Fri Feb 4 20:50:35 UTC 2022


On Friday, 4 February 2022 at 04:28:37 UTC, Walter Bright wrote:
> There's really no fix for that other than making the effort to 
> understand 2s-complement. Some noble attempts:
>
> Java: disallowed all unsigned types. Wound up having to add 
> that back in as a hack.

How many people actually use (and need) unsigned integers? If 99% 
of users don't need them, that's a good case for relegating them 
to a library type. This wasn't possible in Java because it 
doesn't support operator overloading, without which dealing with 
such types would have been quite annoying.


More information about the Digitalmars-d mailing list