Jump to page: 1 2
Thread overview
[Issue 13183] C++ namespace should not conflict with import root package
Jan 15, 2015
Paul O'Neil
Jan 23, 2015
Walter Bright
Jan 26, 2015
Sobirari Muhomori
Mar 28, 2015
Paul O'Neil
Sep 22, 2015
Sobirari Muhomori
Feb 13, 2017
anonymous4
Feb 14, 2017
Walter Bright
Feb 14, 2017
Timothee Cour
Feb 14, 2017
anonymous4
Feb 14, 2017
Walter Bright
Feb 14, 2017
Walter Bright
January 15, 2015
https://issues.dlang.org/show_bug.cgi?id=13183

Paul O'Neil <redballoon36@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |redballoon36@gmail.com

--- Comment #1 from Paul O'Neil <redballoon36@gmail.com> ---
I'd like to add a more compelling use case:
import std.string;
extern(C++, std) { }

It's not possible to use the D standard library in the same modules as the C++ standard library.

Tested in dmd 2.066.1

--
January 23, 2015
https://issues.dlang.org/show_bug.cgi?id=13183

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |C++
                 CC|                            |bugzilla@digitalmars.com

--
January 26, 2015
https://issues.dlang.org/show_bug.cgi?id=13183

--- Comment #2 from Sobirari Muhomori <dfj1esp02@sneakemail.com> ---
Does this work?
---
import dstd = std.string;
extern(C++, std) { }
---

--
March 28, 2015
https://issues.dlang.org/show_bug.cgi?id=13183

--- Comment #3 from Paul O'Neil <redballoon36@gmail.com> ---
Yes, that does work. Thanks for the workaround.  I'm now a lot less concerned about this but still think it should remain open.

--
September 22, 2015
https://issues.dlang.org/show_bug.cgi?id=13183

Sobirari Muhomori <dfj1esp02@sneakemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |turkeyman@gmail.com

--- Comment #4 from Sobirari Muhomori <dfj1esp02@sneakemail.com> ---
*** Issue 15098 has been marked as a duplicate of this issue. ***

--
February 13, 2017
https://issues.dlang.org/show_bug.cgi?id=13183

anonymous4 <dfj1esp02@sneakemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timothee.cour2@gmail.com

--- Comment #5 from anonymous4 <dfj1esp02@sneakemail.com> ---
*** Issue 17178 has been marked as a duplicate of this issue. ***

--
February 14, 2017
https://issues.dlang.org/show_bug.cgi?id=13183

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #6 from Walter Bright <bugzilla@digitalmars.com> ---
The workaround looks good.

--
February 14, 2017
https://issues.dlang.org/show_bug.cgi?id=13183

--- Comment #7 from Timothee Cour <timothee.cour2@gmail.com> ---
what do you mean by `The workaround looks good.`?

It makes it difficult to integrate; that prevents any direct `import foo` which could in turn import `std.something` so forces one to do all sorts of convolutions

--
February 14, 2017
https://issues.dlang.org/show_bug.cgi?id=13183

--- Comment #8 from anonymous4 <dfj1esp02@sneakemail.com> ---
AIU, this can't work because C++ namespaces are added to D symbol table. Manu proposed to not add C++ namespaces to D symbol table, use them for mangling only, this would also allow multiple declarations of the same C++ namespace. Was it rejected?

--
February 14, 2017
https://issues.dlang.org/show_bug.cgi?id=13183

--- Comment #9 from Walter Bright <bugzilla@digitalmars.com> ---
(In reply to anonymous4 from comment #8)
> AIU, this can't work because C++ namespaces are added to D symbol table. Manu proposed to not add C++ namespaces to D symbol table, use them for mangling only, this would also allow multiple declarations of the same C++ namespace. Was it rejected?

Manu's proposal was rejected. There was a discussion thread about it, sorry, I don't have a link handy.

--
« First   ‹ Prev
1 2