Summary: suggest keyword:auto return
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2

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


Reply via email to