'int' is enough for 'length' to migrate code from x86 to x64

John Colvin via Digitalmars-d digitalmars-d at puremagic.com
Thu Nov 20 09:02:35 PST 2014


On Thursday, 20 November 2014 at 15:40:40 UTC, Araq wrote:
>> Most of the statements I disagreed with were opinions.
>>
>>>>> "unsigned" means "I want to use modulo 2^^n arithmetic". It 
>>>>> does
>>>>> not mean, "this is an integer which cannot be negative".
>>
>> Opinion.
>>
>>>>> Using modulo 2^^n arithmetic is *weird*.
>>
>> Opinion.
>>
>>>>> If you are using
>>>>> uint/ulong to represent a non-negative integer, you are 
>>>>> using the
>>>>> incorrect type.
>>
>> Opinion.
>>
>>>>> I believe that
>>>>> bugs caused by unsigned calculations are subtle and require 
>>>>> an
>>>>> extraordinary level of diligence.
>>
>> Opinion (correctly qualified as belief).
>
> It's not only his "opinion", it's his *experience* and if we 
> want
> to play the "argument by authority" game: he most likely wrote
> more production quality code in D than you did.

Urrmmm, really? Andrei has written a hell of a lot of production 
quality code. I use it every day, in production, as do many 
others.


More information about the Digitalmars-d mailing list