auto limitation?

Denis Shelomovskij verylonglogin.reg at gmail.com
Tue Sep 11 14:37:26 PDT 2012


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


More information about the Digitalmars-d-learn mailing list