Shouldn't c_long and c_ulong be library typedefs?

Iain Buclaw ibuclaw at ubuntu.com
Thu Sep 6 02:43:23 PDT 2012


On 6 September 2012 00:52, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:
> I'm interfacing with C++ and found a little overload problem:
>
> C++:
> void test(unsigned int x)  { }
> void test(unsigned long x) { }
>
> int main()
> {
>     unsigned int x;
>     unsigned long y;
>     test(x);
>     test(y);
>     return 0;
> }
>

Interfacing is the least of your problems. D is also unable to mangle
'unsigned long' in C++ correctly either. :^)


-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


More information about the Digitalmars-d mailing list