Using getSymbolsByUDA in a static foreach loop

Adam Ruppe destructionator at gmail.com
Thu Jan 20 01:14:51 UTC 2022


On Thursday, 20 January 2022 at 00:55:33 UTC, Jack Stouffer wrote:
>             static foreach(member; __traits(allMembers, 
> Manager))

member here is a string, not the member. I prefer to call it 
memberName.

Then you __traits(getMember, Manager, memberName) to actually get 
the alias you can pass to getAttributes.


More information about the Digitalmars-d-learn mailing list