[Issue 2855] New: __traits: no way to get overloads and information for non-instance methods

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 18 19:20:11 PDT 2009


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

           Summary: __traits: no way to get overloads and information for
                    non-instance methods
           Product: D
           Version: 2.027
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: dhasenan at gmail.com


Given a UDT and a constructor or a static method, I want to use __traits to
access overloads of that constructor or static method.

__traits provides allMembers, which returns static and non-static functions and
non-static constructors. It also provides getVirtualFunctions, which provides
overloads for non-static functions. There is no equivalent to
getVirtualFunctions for constructors or static functions.


-- 



More information about the Digitalmars-d-bugs mailing list