On Tuesday, 23 September 2014 at 18:34:51 UTC, Andrei Alexandrescu wrote:
I've raised https://issues.dlang.org/show_bug.cgi?id=10378 to critical. Please chime in with ideas for a good solution. Thanks! -- Andrei

What about requiring all local imports to be statically imported?

module a;

int i;


module b;

int test(int i)
{
    //Error, local imports must be static
    //import a;

    //Okay
    static import a;
}

Reply via email to