On Mon, 23 May 2011 10:50:11 -0400, Andrej Mitrovic <andrej.mitrov...@gmail.com> wrote:

Since &main can't be a template value argument, maybe he meant this use case:

alias int func();

void foo(alias T)()
{
      static assert(is(typeof(&T) == int function())); // fixed
}

int main()
{
    foo!main;
    return 0;
}

Reply via email to