Attribute inference for auto functions?

Walter Bright newshound2 at digitalmars.com
Wed Apr 17 23:38:09 PDT 2013


On 4/17/2013 11:34 PM, deadalnix wrote:
> On Thursday, 18 April 2013 at 05:59:20 UTC, kenji hara wrote:
>> It will break existing code.
>>
>> int foo() {
>>     typeof(return) bar() { return 1; }
>>     return bar();
>> }
>>
>> typeof(return) represents the return type of foo, that is int.
>>
>
> That is true :( Don't seem fixable.

It is fixable if it is special cased, but special cases stink.


More information about the Digitalmars-d mailing list