C++ interface.

Jacob Carlborg doob at me.com
Tue Apr 1 12:37:34 PDT 2014


On 2014-04-01 20:37, Walter Bright wrote:
> On 4/1/2014 10:38 AM, Ali Çehreli wrote:
>> However, the mangling itself is not standardized.
>
> That isn't the problem - dmd emits custom mangling for each platform.
>
> The problem is "how to specify C++ namespaces in D".

with UDA's, of course :)

@namespace("foo::bar")
{
extern (C++):

     void foo ();
     void bar ();
}

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list