D int and C/C++ int etc not really compatible when interfacing to C/C++
Sean Kelly via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Nov 2 09:27:10 PST 2014
On Sunday, 2 November 2014 at 16:53:06 UTC, ponce wrote:
>
> c_long and c_ulong get used, should c_int and c_uint too in
> bindings?
> Looks like fringe use case.
On common 32 and 64-bit platforms, the only type whose size
changed between 32 and 64 bits is long, so the other aliases were
deemed unnecessary. It's possible that as D is ported to more
platforms this will have to change, but I seriously hope not.
More information about the Digitalmars-d-learn
mailing list