dmd 1.069 and 2.054 release

dsimcha dsimcha at yahoo.com
Mon Jul 11 10:02:52 PDT 2011


== Quote from Walter Bright (newshound2 at digitalmars.com)'s article
> 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.

So are there multiple instantiations depending on rvalue vs. not rvalue?


More information about the Digitalmars-d-announce mailing list