Comment #0 by andrej.mitrovich — 2013-09-25T06:12:16Z
Currently getopt works with delegates, but not functions:
-----
import std.getopt;
void main(string[] args)
{
static void test1(string)
{
}
void test2(string)
{
}
getopt(args,
"test1", &test1, // fails
"test2", &test2);
}
-----
AFAICT I don't see any technical reason why functions shouldn't be supported.
Comment #1 by andrej.mitrovich — 2013-09-25T17:07:09Z