[Issue 5525] New: Eponymous templates should allow for overloaded eponymous members

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 4 14:24:40 PST 2011


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

           Summary: Eponymous templates should allow for overloaded
                    eponymous members
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: simen.kjaras at gmail.com


--- Comment #0 from Simen Kjaeraas <simen.kjaras at gmail.com> 2011-02-04 14:22:21 PST ---
Given:

template foo( T ) {
    T foo( T t ) {
        return t;
    }
    T foo( T t, T u ) {
        return t + u;
    }
}

This should not cause problems. Basically, if a template contains an eponymous
overload set, the overload set should be considered its only member.

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