How can I distinguish an enum constant from an actual enum at compile time?
    TheFlyingFiddle via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Fri Oct 30 04:46:41 PDT 2015
    
    
  
I want to be able to do something like this:
enum a = 32
enum b = { q,w,e,r,t,y }
CtType ctype  = getCtType!(a); // -> Would become 
CtType.enumConstant
CtType ctype1 = getCtType!(b); // -> Would become CtType.enum_
    
    
More information about the Digitalmars-d-learn
mailing list