On Saturday, 16 December 2017 at 19:57:30 UTC, Marc wrote:
Does D have something similar?

As others have said, D has UDAs.

An alternative to using __traits(getAttributes) is to use std.traits.getUDAs [1]

I've made a small example using std.traits.getUDAs, based off of your example. [2]

[1] https://dlang.org/library/std/traits/get_ud_as.html
[2] https://run.dlang.io/is/PTfEcw    (I hope that link works)

Reply via email to