Looks like that there is no easy way to extract a function parameters UDA list.

The following:
```
import std.traits;

struct s { string foo; }
void foo(@s("aaa") int a, bool x);

void main()
{
    alias P = Parameters!foo;
    enum udas = __traits(getAttributes, P);
    pragma(msg, udas);
}
```
will print `tuple(s("aaa"))`

but if you change `foo` to `void foo(int a, @s("aaa") bool x);`

you get `Error: first argument is not a symbol`

Is this a current limitation or I'm using the wrong approach?

Reply via email to