On Sunday, 21 February 2016 at 07:47:16 UTC, Jonathan M Davis
wrote:
On Sunday, February 21, 2016 00:38:20 ZombineDev via
dmd-internals wrote:
These happened:
https://github.com/D-Programming-Language/dmd/pull/5426 - fix
Issue 313 - Fully qualified names bypass private imports
https://github.com/D-Programming-Language/dmd/pull/5445 -fix
Issue 10378 - Local imports hide local symbols
I think similar cases were discussed in the comments on those
pull requests.
Wow. All of the comments in the PRs that you guys linked to
make this look like quite a mess, even if we're ultimately
better off. It does seem pretty messed up to me though that you
can't use a symbol's full import path when you've imported it
selectively. I would have expected to still be able to do that,
just not have access to any of the other symbols in the module
that it's in - unless they too were selectively imported.
- Jonathan M Davis
From official D documentation (Selective Imports):
Specific symbols can be exclusively imported from a module and
bound into the current namespace.
std.stdio.writeln("hello!"); // error, std is undefined
So they never has been intended to works with FQN
_______________________________________________
dmd-internals mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-internals