I'm interest in D's metaprogram,surely D is the most powerful language now.
However when i write D program,i found if we can program by this way:
auto ReturnStatic(int i)(int a)
{
int f1(int b){return a+b;}
double f2(double c){return c+a;}
static if(i==0){return &f1;}
else return &f2;
}
this will be great enhance the language power
Comment #1 by fvbommel — 2009-04-22T07:56:04Z
*** This bug has been marked as a duplicate of 2876 ***