does "private import" means "static import" to other modules importing it?

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Oct 13 07:21:56 PDT 2011


You can always qualify the full name unless you're importing a
specific symbol, e.g.:

module A;
import B : fun1;

module C;
import A;
fun1();  // ok
B.fun1(); // not ok
B.fun2(); // not ok

static import just means you can't use the symbol without qualifying
the full package/module name before it:
module A;
static import B;

module C;
import A;
B.fun1();  // ok
B.fun2(); // ok
fun1(); // not ok

I think that should be it.


More information about the Digitalmars-d-learn mailing list