[Issue 12698] Overloads from multiple modules implicitly merge into a single overloadset

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun May 4 06:09:52 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12698

Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #7 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
(In reply to Kenji Hara from comment #6)
> If a 'copy' call matches only for std.file.copy, the importing of
> std.algorithm won't hijack the call. Therefore, there's *no* hijacking which
> should be prevented. We cannot disallow nonexistent hijacking.

Right, I went to re-read the docs again[1] and you're right. I guess I would
use "import a : copy" syntax more often, but I'll wait for 314 and friends to
be fixed first. :)

[1] : http://dlang.org/hijack.html

--


More information about the Digitalmars-d-bugs mailing list