Can I infer the type from this?
Dr.No
jckj33 at gmail.com
Sun May 20 01:41:03 UTC 2018
I'd like to pass a symbol as paramater (class static member0 and
at same time get the type of this, something like this:
template myTemp(alias s)
{
enum myTemp = templateFunction!(??)(s.stringof);
}
the templateFunction has this signature:
int templateFunction(T)(string targetMembername)
but I don't how to get the type name from the give symbol name in
myTemp. Can I make this work?
More information about the Digitalmars-d-learn
mailing list