On Mon, 28 Apr 2014 10:46:33 -0400, Byron <byron.he...@gmail.com> wrote:
On Sun, 27 Apr 2014 12:54:51 -0700, Walter Bright wrote:http://wiki.dlang.org/DIP61Would nesting imported namespaces work? lib/package.d public export(C++, a) { public import lib.b; } lib/b.d export(C++, b) { void foo(); } main.d import lib; a.b.foo();
Most definitely no. When the compiler builds b.d, he has no idea it's imported from inside another namespace! We don't want #include-style issues.
-Steve