Has the ban on returning function nested structs been lifted?
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Fri Mar 18 12:48:17 PDT 2011
On 3/18/11 1:21 PM, Jonathan M Davis wrote:
> Yeah. Actually, Andrei has been making changes to std.range and std.algorithm so
> that _most_ functions which return new range types work this way. So, if TDPL
> says that it's illegal, it probably needs to be changed. Either that or we need
> to stop switching over to doing things that way. On the whole though, it strikes
> me as a positive change.
>
> - Jonathan M Davis
Yah, TDPL needs changing. Auto returns + local types = just awesome.
Andrei
More information about the Digitalmars-d
mailing list