I am not sure I understand the question. Does this help?

struct A
{
        int x;
        double y;
}

void main()
{
        foreach (idx, elem; A.init.tupleof)
        {
                pragma(msg, __traits(identifier, A.tupleof[idx]));
        }
}

// output:
// x
// y

Exactly what I wanted!

BTW: Can DMD serve use file and line location of user defined type aswell?

Thx!

Reply via email to