So, I was away from active D development for a while, and I'm having trouble finding info about how to use UDAs. I can see the basics, like how to apply a UDA to a symbol, but now how to do specific things, like: * Check to see if a specific attribute exists * Check to see if an attribute of a specific type exists, something like: @Foo('a') int x; enum hasAnyFoo = __traits(hasAttributeOfType, Foo, x); * Create a function that can only be called if the first argument has a UDA of a specific type
Are any of these doable? Thank you, -Matt Soucy
signature.asc
Description: OpenPGP digital signature