Attribute inference for auto functions?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Apr 17 08:07:38 PDT 2013


On 4/16/13 4:20 PM, Peter Alexander wrote:
> This is the point I have a problem with:
>
>>> 2.2. One cannot opt out of nothrow or pure with auto functions.
>> This argument has one solid answer: don't use auto when the need is to
>> specify an attribute pattern explicitly.
>
> I find this unacceptable. Thanks to the proliferation of template code
> in D, it is often rather difficult to spell out return types.

Attribute inference is always done for templates.

Andrei



More information about the Digitalmars-d mailing list