get parameter names

EntangledQuanta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Sep 1 13:58:20 PDT 2017


template(A, B...)
{
    auto foo(C...)(C c)
    {
        ... get c's parameter names, should be alpha, beta
    }
}


foo!(., .)(alpha, beta)

I need the actual identifiers passed to foo. I can get the 
types(obviously C) but when I try to get the identifier 
names(__traits(identifier or other methods) I stuff get _param_k 
or errors.

I need both C's types and the parameter identifier names past, 
else I'd just pass as strings.




More information about the Digitalmars-d-learn mailing list