D int and C/C++ int etc not really compatible when interfacing to C/C++
ponce via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Nov 2 08:53:05 PST 2014
On Sunday, 2 November 2014 at 12:37:13 UTC, Mike Parker wrote:
> On 11/2/2014 8:59 PM, "Marc Schütz" <schuetzm at gmx.net>" wrote:
>> On Saturday, 1 November 2014 at 21:00:54 UTC, Kagamin wrote:
>>> D claims compatibility with system C compiler, which usually
>>> have
>>> 32-bit int.
>>
>> ... and for C/C++ long which can be 32 or 64 bit, DMD recently
>> introduced the types c_long and c_ulong. (Not released yet.)
>
> Those aren't new. They have been in core.stdc.config for quite
> some time.
c_long and c_ulong get used, should c_int and c_uint too in
bindings?
Looks like fringe use case.
More information about the Digitalmars-d-learn
mailing list