Thread overview
import inside function sometimes causes link errors
Oct 19, 2012
timotheecour
Oct 19, 2012
Andrej Mitrovic
Oct 20, 2012
timotheecour
October 19, 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.

October 19, 2012
On 10/19/12, timotheecour <thelastmammoth@gmail.com> wrote:
> does D fully support using import statements inside functions?

It's a rather recent feature, there's probably a few bugs. Feel free to file: http://d.puremagic.com/issues/
October 20, 2012
> It's a rather recent feature, there's probably a few bugs. Feel free to file: http://d.puremagic.com/issues/

done:
http://d.puremagic.com/issues/show_bug.cgi?id=8856