Attribute inference for auto functions?

Piotr Szturmaj bncrbme at jadamspam.pl
Fri Apr 19 06:50:26 PDT 2013


W dniu 19.04.2013 15:43, John Colvin pisze:
> I like this. It provides a good balance of control and automation.
>
> how would template functions be treated with auto(return)?

I see no need for special treating of template functions. In this case 
only return type would be inferred. Programmers should then specify 
attributes explicitly. By default, template functions with auto(return) 
would be impure, throwing and unsafe.


More information about the Digitalmars-d mailing list