How does one determine the UDAs of all symbols contained in a given module?

Jacob Carlborg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 19 04:28:30 PDT 2017


On 2017-07-19 11:25, Nicholas Wilson wrote:

> You'll want to use https://dlang.org/spec/traits.html#getMember in 
> conjunction with https://dlang.org/spec/traits.html#getAttributes.
> 
> Have a look some of the projects on github e.g. 
> https://github.com/kaleidicassociates/excel-d/blob/master/source/xlld/wrap.d#L686 

And https://dlang.org/spec/traits.html#allMembers to iterate all members 
in a module.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list