pass variable names

Saaa empty at needmail.com
Thu Jul 9 20:05:39 PDT 2009


Is it possible to get the passed variable name à la:
--
void functio(A...)(ref A a)
{
    writefln(typeof(a[0]));
}
int i;
functio(i); // prints "i"
--
Also how do I fix this:
--
functio(`i`); // Error: "i" is not an lvalue
-- 




More information about the Digitalmars-d-learn mailing list