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 08:48:36 PST 2014
    
    
  
On Sunday, 2 November 2014 at 11:59:27 UTC, Marc Schütz 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.)
c_long and c_ulong have existed as aliases in core.stdc since the 
beginning.  The change was to make them an explicit type so name 
mangling could be different.
    
    
More information about the Digitalmars-d-learn
mailing list