[Issue 13183] New: C++ namespace should not conflict with import root package
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Tue Jul 22 04:32:15 PDT 2014
    
    
  
https://issues.dlang.org/show_bug.cgi?id=13183
          Issue ID: 13183
           Summary: C++ namespace should not conflict with import root
                    package
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: verylonglogin.reg at gmail.com
The fact C++ root namespace conflicts with import root package makes it hard to
have same root namespace in C++ codebase.
This code should compile:
---
import abba.m;
extern(C++, abba) { }
---
main.d(2): Error: namespace main.abba conflicts with import main.abba at
main.d(1)
---
--
    
    
More information about the Digitalmars-d-bugs
mailing list