Signed word lengths and indexes
Walter Bright
newshound1 at digitalmars.com
Thu Jun 17 13:28:09 PDT 2010
Steven Schveighoffer wrote:
> On Thu, 17 Jun 2010 15:24:52 -0400, Don <nospam at nospam.com> wrote:
>
>>
>> A question I have though is, Java has >>>. Does Java have these
>> problems too?
>
> Java doesn't have unsigned values, so it's necessary to use regular
> int's as bitmasks, hence the extra operator.
The reason D has >>> is to cause an unsigned right shift to be generated without
needing to resort to casts as one has to in C.
The problem with such casts is they wreck generic code.
More information about the Digitalmars-d
mailing list