auto in library functions

Jacob Carlborg doob at me.com
Mon Dec 24 03:07:53 PST 2012


On 2012-12-23 23:16, Jonathan M Davis wrote:

> But with return types, it affects the documentation and people's ability to
> figure out what a function does, so as useful as auto return types can be, they
> come with a definite cost and should be avoided if they're not needed.

The compiler should be able to replace "auto" with the actual type when 
generating documentation.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list