find all public properties at compile time
    Jacob Carlborg via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Tue Sep 30 13:46:32 PDT 2014
    
    
  
On 2014-09-30 22:19, anonymous wrote:
> import std.typetuple: staticMap;
> enum stringOf(alias thing) = thing.stringof;
It's better to use __traits(identifier) instead of .stringof.
-- 
/Jacob Carlborg
    
    
More information about the Digitalmars-d-learn
mailing list