[Issue 2025] Inconsistent rules for instantiating templates with a tuple parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 31 19:17:22 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=2025
yebblies <yebblies at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |yebblies at gmail.com
--- Comment #5 from yebblies <yebblies at gmail.com> 2012-02-01 14:17:20 EST ---
(In reply to comment #4)
> (In reply to comment #2)
> > int is a "convert" match with T (so that a better match would be Foo(T:int) and
> > an "exact" match with (A...). The exact match wins.
>
> You've lost me here. How is int matching T not exact?
As Walter said, so that T:int would be considered a better match. It is a hack
in the compiler that I'm not particularly fond of. See issue 4953 for another
case it causes problems.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list