[Issue 1650] Incorrect overload selected with IFTI
Sean Kelly
sean at f4.ca
Sun Nov 11 11:32:11 PST 2007
d-bugmail at puremagic.com wrote:
> http://d.puremagic.com/issues/show_bug.cgi?id=1650
>
> ------- Comment #3 from smjg at iname.com 2007-11-11 10:38 -------
> (In reply to comment #2)
>> The second overload is a more exact match for array parameters.
>
> There's no such thing as a "more exact match" - either a match is exact or it
> isn't. In this case, both are exact matches.
Sorry. I meant "more specialized match." This is how C++ behaves, and
I expected D to behave the same way.
>> My original bug report shows what the expected behavior is here.
>
> Remarks like that are no use without an indication of how you have come to that
> conclusion. What statement(s) in the spec are you going by, exactly?
None. By Walter's statement to me in the newsgroup a year or so ago
that D templates would behave this way.
Sean
More information about the Digitalmars-d-bugs
mailing list