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.