March 03, 2018 Traits redux | ||||
---|---|---|---|---|
| ||||
https://run.dlang.io/gist/ec7008372d60ac52460dd58068f1ca6d?compiler=dmd Why only listUDA2 works and listUDA doesn't? Why do I need to use __traits(getMember again, if I use what I saved in a variable, it doesn't work :( |
March 03, 2018 Re: Traits redux | ||||
---|---|---|---|---|
| ||||
Posted in reply to JN | On Saturday, 3 March 2018 at 16:20:57 UTC, JN wrote:
> https://run.dlang.io/gist/ec7008372d60ac52460dd58068f1ca6d?compiler=dmd
>
> Why only listUDA2 works and listUDA doesn't? Why do I need to use __traits(getMember again, if I use what I saved in a variable, it doesn't work :(
because getUDAs returns only instantiations and ignores templates
and scince hasUDA or getSymbolsByUDA uses it non of them work anymore. :(
based on run.dlang.io it worked with dmd 2.071.2
|
Copyright © 1999-2021 by the D Language Foundation