Andrei Alexandrescu via Digitalmars-d <digitalmars-d@puremagic.com> napsal So, pro 24, 2016 v 9∶32 :<br>
<blockquote type="cite"><div class="plaintext" style="white-space: pre-wrap;">Consider:

with (import std.stdio)
int fun(int x/*, File f*/)
{
    // f.writeln("In: ", x);
    return x * x;
}

Such situations occur during refactorings and code evolution. The import is no longer used. Should the compiler flag that as an error, or leave it be?


Andrei</div></blockquote><br><div>for such things there should be support in IDE or use some lint tool</div>