D2.0 cpp interfacing: what is a C++ unsigned long counterpart in D?
downs
default_357-line at yahoo.de
Sun Oct 4 04:51:31 PDT 2009
Denis Koroskin wrote:
> I'm currently writing a program that interfaces with C++.
> C++ code uses a lot of 'unsigned long', which equals to 'unsigned int',
> or just 'unsigned', but is mangled differently.
>
> In particular, C++ mangles unsigned long as 'K', and I can't find a D
> counterpart that would be mangled similarly.
> This results in an unaccessible function (it is unresolved at link time).
>
> Any thoughts?
Why not define the respective types in object.d, like C_int, C_long, C_ulong, and have the compiler mangle them correctly?
I mean, if we're proposing new features anyway ..
More information about the Digitalmars-d
mailing list