import inside function sometimes causes link errors

timotheecour thelastmammoth at gmail.com
Fri Oct 19 12:00:29 PDT 2012


does D fully support using import statements inside functions?
I sometimes get link errors eg:

void fun(){
     import mypackage.mymodule;
     mypackage.mymodule.myfun(); //will cause link error
}

if you haven't encountered it yet I can provide a simplified test 
case.



More information about the Digitalmars-d-learn mailing list