Filter out common object functions
    Inquie via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Tue Mar 14 12:39:26 PDT 2017
    
    
  
I am iterating over the members of classes and interfaces and get 
things like hash, this, etc. These are causing problems in my 
code. I would like to get only the "specified" members.
While I can filter out
__traits(allMembers, T);
using Erase, it is tedius and error prone.
Is there a way to get only the immediate members? Non-inherited, 
and "common"(for a lack of a better word), this(), for example, 
is specified by the language... i don't need it, just functions 
the user specifies in the type.
    
    
More information about the Digitalmars-d-learn
mailing list