Bug 2877 – suggest keyword:auto return

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-04-22T07:48:00Z
Last change time
2015-06-09T01:31:20Z
Assigned to
bugzilla
Creator
galaxylang

Comments

Comment #0 by galaxylang — 2009-04-22T07:48:58Z
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 ***