[Issue 19365] Allow aliasing templated functions from mixin template to add them to overload set

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 28 10:56:19 UTC 2020


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

--- Comment #5 from Dennis <dkorpel at live.nl> ---
(In reply to Bolpat from comment #4)
> Overload sets work are separated overloads to search for matches where an
> ambiguity error occurs when there are any matches in two or more sets,
> regardless whether one match is clearly better.

I don't understand this sentence.

> Putting the mixed-in symbols in a named
> scope like you're suggesting actually creates overloading sets in the first
> place.
> 
> There is a good reason for the shadowing, so this enhancement probably isn't
> going anywhere.

The suggestion is not to change mixin template behavior, it is to allow using
`alias` to explicitly combine mixin methods with existing member functions.

--


More information about the Digitalmars-d-bugs mailing list