On 22 Feb 2016, at 16:56, Jonathan M Davis via dmd-internals wrote:
In that case, using static imports makes sense. They're there to avoid name conflicts when importing a module. But having a symbol be usable and yet not
being able to use its FQN is just plain weird.

I wouldn't say it's weird at all. Selective imports conceptually act like an alias for the symbol in your local scope. Accordingly, the FQN of the symbol is "where that alias is":

---
module test;
import std.stdio : writeln;
void main() { test.writeln("foo"); }
---

 — David
_______________________________________________
dmd-internals mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-internals

Reply via email to