Attribute inference for auto functions?

deadalnix deadalnix at gmail.com
Wed Apr 17 19:47:13 PDT 2013


On Thursday, 18 April 2013 at 02:40:42 UTC, Walter Bright wrote:
> On 4/16/2013 8:22 AM, Andrei Alexandrescu wrote:
>> There's a discussion that may be of interest to the larger 
>> community:
>> https://github.com/D-Programming-Language/dmd/pull/1877
>
> What do you think of this:
>
>      typeof(return) foo(int x) { return x; }
>
> ? That would only infer the return type, not the attributes.

Very nice !


More information about the Digitalmars-d mailing list