integer sizes

Jason House jason.james.house at gmail.com
Mon May 28 11:44:19 PDT 2007


Rioshin an'Harthen wrote:
> So if you need a specific bitsize for an integral type, use the standard 
> byte,
> short, int, long, cent, or their unsigned variants, while if you need 
> the correct
> native type use ptrdiff_t for signed values and size_t for unsigned.

I believe there's some intel machines with have 64 bit pointers but 32 
bit integers.  I'd assume that size_t would be 64 bits, but the 
desirable size for integers would still be 32 bits.  Using size_t in 
that scenario would be incorrect.


More information about the Digitalmars-d-learn mailing list