Type tuple of all constructors?

Benjamin Thaut code at benjamin-thaut.de
Thu Sep 22 09:11:45 PDT 2011


Is there a way to get a type tuple of all aviable constructors in a class?

class Test {
   public:
     this(Foo foo){
       m_foo = foo;
     }

     this(bool flop){
     }

     this(int x, int y){
     }
}

For this class I would expect something like ((Foo),(bool),(int,int))
-- 
Kind Regards
Benjamin Thaut


More information about the Digitalmars-d mailing list