Local imports hide local symbols
Meta via Digitalmars-d
digitalmars-d at puremagic.com
Tue Sep 23 11:48:42 PDT 2014
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;
}
More information about the Digitalmars-d
mailing list