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

Andrew Edwards via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 19 04:49:15 PDT 2017


On Wednesday, 19 July 2017 at 11:28:30 UTC, Jacob Carlborg wrote:
> 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.

Thanks Jacob and Nicholas... Brian Schott helped me out a bit on 
IRC earlier. I'm still not getting exactly what I'm looking for 
though so wanted to experiment a bit more before posting an 
update here. I'll check out the warp.d examples Nicholas linked 
to above.

Andrew


More information about the Digitalmars-d-learn mailing list