[Issue 2025] Inconsistent rules for instantiating templates with a tuple parameter

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 22 01:30:36 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=2025


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com


--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> 2012-01-22 01:30:32 PST ---
Here's what's happening:

Case 1
------
1 is an "exact" match with (int i) and (A...). Since (int i) is more
specialized, it goes with (int i).

Case 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.

-- 
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