Google C++ style guide

bearophile bearophileHUGS at lycos.com
Sun Oct 4 14:50:42 PDT 2009


Justin Johansson:

> The return type must be specified however,
> since inference cannot be made from missing information.

If the information isn't missing in D2 you can sometimes use "auto" return type for function templates and some functions, and in some other situations you can also use typeof(return).

Bye,
bearophile



More information about the Digitalmars-d mailing list