C++ interop - what to do about long and unsigned long?

Daniel N via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 13 04:17:05 PDT 2014


On Wednesday, 10 September 2014 at 20:41:45 UTC, Walter Bright 
wrote:
> C++'s long and unsigned long can be accessed with c_long and 
> c_ulong. Unfortunately, these are aliases and mangle to their 
> underlying types.

How about?

pragma(mangle, "l")
alias c_long = int;


More information about the Digitalmars-d mailing list