size_t + ptrdiff_t

Juan Manuel Cabo juanmanuel.cabo at
Tue Feb 21 15:50:59 PST 2012

> Eh?

All the type sizes vary in broken ways in C. The only sane way
to port C structs to D is to use c_<type> that has the size of the
C compiler in the target platform.

If there is a single C compiler has a different sized size_t
than D's, then one has achieved nothing with the c_int, c_long, etc.

So that is why it'd be nice, in my opinion, to have c_size_t
(and c_ssize_t) if we are going to have c_int, c_long, etc.

Sorry for requesting things though!! I still don't know my way
around here.


On 02/21/2012 08:35 PM, Iain Buclaw wrote:
> On 21 February 2012 22:45, Juan Manuel Cabo <juanmanuel.cabo at> wrote:
>> A REQUEST: how about adding a c_size_t too?
> Eh?

More information about the Digitalmars-d mailing list