Eigenpoll : D wish list : inline expansion
*Example
char[] f(){
return "test";
}
char[] f(char[] s){
foreach(char c;s.reverse){
s~=c;
}
return s;
}
char[] f(uint s){
assert(s==0);
return "0";
}
const char[] test=f();//shuld be "test"
const char[] test2=f("test");//shuld be "testtset"
const char[] test3=f(0);//shuld be "0"
const char[] test4=f(1);//shuld be occurred assert error in compile time
Report this item for cleanup