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

Steven Schveighoffer via dmd-internals dmd-internals at puremagic.com
Sun Feb 21 16:08:37 PST 2016


> On Feb 21, 2016, at 2:47 AM, Jonathan M Davis via dmd-internals <dmd-internals at puremagic.com> 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.

The key comment in those PRs: https://github.com/D-Programming-Language/dmd/pull/5426#issuecomment-181589047

A start to fix them: https://github.com/D-Programming-Language/phobos/pull/4015

-Steve


More information about the dmd-internals mailing list