getting member functions of a struct and Error: identifier expected following ., not this

aliak something at something.com
Tue Jan 23 00:03:18 UTC 2018


On Tuesday, 23 January 2018 at 00:00:38 UTC, aliak wrote:
> Hi, I'm trying to get a list of only member functions of a [...]
> Cheers

And a follow up question: should I be using static foreach in 
there instead of a normal foreach? i.e.

foreach (member; __traits(allMembers, T)) {{
     // same code
}}

And why if yes

Thanks again!


More information about the Digitalmars-d-learn mailing list