Attribute inference for auto functions?

Walter Bright newshound2 at digitalmars.com
Wed Apr 17 12:35:07 PDT 2013


On 4/17/2013 8:07 AM, Andrei Alexandrescu wrote:
> 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.

And, I might add, I cannot recall a single adverse issue that has caused.



More information about the Digitalmars-d mailing list