11.09.2012 22:48, Ali Çehreli пишет:
return to!(ReturnType!(typeof(&foo)))(42);
typeof(return) See http://dlang.org/declaration.html#typeof Anyway don't use it as a type of the first return. You will get: ---Error: cannot use typeof(return) inside function foo with inferred return type
--- -- Денис В. Шеломовский Denis V. Shelomovskij