| |
| Posted by Andrej Mitrovic | PermalinkReply |
|
Andrej Mitrovic
| This is the closed I could get:
auto funcs = tuple
(
[&snippet_text, &snippet_text_extents, &drawStroke, &drawFill,
&drawText, &drawTextAlphaBlock, &drawMask, &drawWithSource,
&drawWithSource2],
["snippet_text", "snippet_text_extents", "drawStroke", "drawFill",
"drawText", "drawTextAlphaBlock", "drawMask", "drawWithSource",
"drawWithSource2"]
);
foreach (func, name; lockstep(funcs[0], funcs[1]))
{
func(args);
writeln(name);
}
But I had to manually set the names, that's no good.
|