[Issue 12359] implicit overload merging with selective imports should be removed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 6 22:28:44 PDT 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12359


Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code at dawg.eu


--- Comment #11 from Martin Nowak <code at dawg.eu> 2014-04-06 22:28:26 PDT ---
(In reply to comment #10)
> I think this is much non-intuitive behavior. No one would expect the silent
> code breaking in module b.

I do agree with the diagnosis but we absolutely need a proper upgrade plan. I
know it's tricky, but we need a warning for code that relies on the implicit
alias without affecting code that just uses the imported symbol.
First of all you want to reach a consensus on the topic though. I haven't yet
seen any good argument in favor of the current behavior, still it's used quite
deliberately in many places.

> They are just funny ideas to mask fully qualified names.

Fully qualified names hardly do any harm, except for rare cases where a package
name collides with a rename. So maybe a syntax isn't necessary.
import core = core.win;

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list