dmd 1.069 and 2.054 release
Walter Bright
newshound2 at digitalmars.com
Mon Jul 11 09:18:16 PDT 2011
On 7/11/2011 7:04 AM, dsimcha wrote:
> Great release! I noticed that auto ref function parameters are now implemented,
> but only for template functions. Is there a reason for this limitation? Example:
>
> Works:
>
> void foo()(auto ref int num) {
> num++;
> }
>
> Doesn't:
>
> void foo(auto ref int num) {
> num++;
> }
auto ref changes the code generated for the function body, so it must be a template.
More information about the Digitalmars-d-announce
mailing list