size_t + ptrdiff_t

Walter Bright newshound2 at
Mon Feb 20 15:22:25 PST 2012

On 2/20/2012 3:28 AM, Manu wrote:
> Even size_t is often
> broken in C. I have worked on 64bit systems with 32bit pointers where size_t was
> still 64bit, but ptrdiff_t was 32bit (I think PS3 is like this, but maybe my
> memory fails me)

I don't know how that could be considered C standard compliant.

> I want to be confident when I declare a numeric type that can interact with
> pointers, and also when I want the native type.

I think you're probably best off for now by doing your own alias for it.

More information about the Digitalmars-d mailing list