traits for function having actual source declaration?

bitwise via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Sep 1 07:41:56 PDT 2017


On Friday, 1 September 2017 at 14:38:38 UTC, bitwise wrote:
> When I'm using __traits(allMembers), I get a all the invisible 
> functions added by the compiler as well "__ctor", "__xdtor", 
> "__cpctor", etc..
>
> Is there a way to filter them out?

dlang's "Lexical" page says:

"Identifiers starting with __ (two underscores) are reserved."

So I suppose I could just filter out functions with leading 
underscores, but still seems unreliable, as people may not listen.


More information about the Digitalmars-d-learn mailing list