January 01, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1761

           Summary: __traits(getVirtualFunctions, ...) doesn't give function
                    parameter types
           Product: D
           Version: 2.009
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: mi_emayl_adrez@hotmail.com


class C
{
   void func() {}
   void func(int a) {}
   void func(int a, int b) {}
}

void main()
{
   foreach (t; __traits(getVirtualFunctions, C, "func"))
      writefln(typeid(typeof(t)));
}

prints:
void()
void()
void()

it would be more useful if it did:
void()
void(int)
void(int, int)


-- 

September 09, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1761


smjg@iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg@iname.com
  BugsThisDependsOn|                            |1519
            Summary|__traits(getVirtualFunctions|TypeInfo.toString for
                   |, ...) doesn't give function|function types always
                   |parameter types             |indicates no-parameter
                   |                            |function




------- Comment #1 from smjg@iname.com  2008-09-09 15:58 -------
It's not a problem with traits, it's a problem with the TypeInfo for functions/delegates.


--