www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - DMD 2.066.0-b1 feedback

reply "Tove" <Tove fransson.se> writes:
The beta works great this far, just sharing some few initial 
surprises.

1) The lookup rules for namespaces seem overly permissive:

extern (C++, A.B.C):
void cpp() { }

All these work:
A.cpp
B.cpp
C.cpp
A.B.cpp
B.C.cpp
A.B.C.cpp

2) We have std.traits.functionLinkage, but no corresponding trait 
to get the namespace?
Jul 05 2014
parent Walter Bright <newshound2 digitalmars.com> writes:
On 7/5/2014 4:22 AM, Tove wrote:
 The beta works great this far, just sharing some few initial surprises.

 1) The lookup rules for namespaces seem overly permissive:

 extern (C++, A.B.C):
 void cpp() { }

 All these work:
 A.cpp
 B.cpp
 C.cpp
 A.B.cpp
 B.C.cpp
 A.B.C.cpp
The lookup rules are the same for imports and template mixins.
Jul 06 2014