[dmd-internals] Why are there suddenly tons of deprecation messages about imports in Phobos?

Jonathan M Davis via dmd-internals dmd-internals at puremagic.com
Sat Feb 20 23:47:16 PST 2016


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



More information about the dmd-internals mailing list