Apparently unsigned types really are necessary
Nick Sabalausky
a at a.a
Sun Jan 22 13:18:18 PST 2012
"Kagamin" <spam at here.lot> wrote in message
news:bhhmhjvgsmlxjvsuwzsb at dfeed.kimsufi.thecybershadow.net...
> On Sunday, 22 January 2012 at 09:31:15 UTC, Marco Leise wrote:
>> So everyone uses int, and we get messages like: "This program currently
>> uses -1404024 bytes of RAM". I have strong feelings against using signed
>> types for variables that are ever going to only hold positive numbers,
>> especially when it comes to sizes and lengths.
>
> If you ignore type limits, you're asking for trouble. Imagine you have 2
> gigs of ram and 3 gig pagefile on 32-bit OS. What is the total size of
> available memory?
One negative gig, obviously. (I think that means it's positronic...)
More information about the Digitalmars-d
mailing list