Inadequacies of __traits
    BCS 
    ao at pathlink.com
       
    Fri Jul 27 16:29:39 PDT 2007
    
    
  
Reply to Kirk,
> The primary issue I have with with _ctor is that you cannot use it to
> get the signatures of all of the class's constructors (just of the
> lexically first constructor). My second concern is that the
> isFooFunction traits don't report what kind of function it is
> correctly.
> 
I'm basically with you on this. _ctor is to different than the rest to be 
thrown in there.
Maybe it needs it's own trait, some sort of __traits(ctorOf, Foo)  that gives 
a tuple of signatures.
    
    
More information about the Digitalmars-d
mailing list