[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:00:52 PDT 2014


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

--- Comment #6 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Andrej Mitrovic from comment #5)
> (In reply to Kenji Hara from comment #4)
> > (In reply to Andrej Mitrovic from comment #3)
> > > Because it's accidental. char[] is not an output range, but byte[] is.
> > 
> > 
> > This is because of the definition of output range.
> > So this is Phobos issue, not compiler's.
> 
> I thought disallowing this was the point of function hijacking prevention?

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.

--


More information about the Digitalmars-d-bugs mailing list