extern(C++, ns)

Manu via Digitalmars-d digitalmars-d at puremagic.com
Sat Jan 2 21:26:09 PST 2016


On 3 January 2016 at 15:17, Rikki Cattermole via Digitalmars-d <
digitalmars-d at puremagic.com> wrote:
>
> Ok, so what I gathered from that is that if a D package/module matches a
> C++ one in scope, D will only be checked.
>

No, you name conflict error. But that's not the main problem I'm talking
about, which is that namespace scopes are created and break everything.



> The obvious answer would be to rename the D side, but that really isn't
> good enough.
>

You don't just go and rename an entire existing project, which is a lib in
this case (so, also rename all the clients...?) because you need to type
extern(C++) somewhere :/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20160103/7ef6cfa7/attachment-0001.html>


More information about the Digitalmars-d mailing list