untuple a tuple
JS
js.mdnq at gmail.com
Mon Jul 29 09:57:47 PDT 2013
if I have something like
template t(args...)
{
pragma(msg, args);
}
it prints out args in a tuple... e.g.,
tuple!(...)
I do not want it to print out the tuple!().
I can write my own pragma and pass each arg to it (e.g.,
pragma(msg, arg[0], arg[1], ...)) but this is not very general
and requires a lot of static if's (one for each possible n).
Is it possible to "untuple"?
More information about the Digitalmars-d-learn
mailing list