Integer conversions too pedantic in 64-bit

spir denis.spir at gmail.com
Tue Feb 15 15:13:33 PST 2011


On 02/15/2011 11:24 PM, Jonathan M Davis wrote:
> Is there some low level reason why size_t should be signed or something I'm
> completely missing?

My personal issue with unsigned ints in general as implemented in C-like 
languages is that the range of non-negative signed integers is half of the 
range of corresponding unsigned integers (for same size).
* practically: known issues, and bugs if not checked by the language
* conceptually: contradicts the "obvious" idea that unsigned (aka naturals) is 
a subset of signed (aka integers)

denis
-- 
_________________
vita es estrany
spir.wikidot.com



More information about the Digitalmars-d mailing list