auto ref is on the docket

Dennis Ritchie via Digitalmars-d digitalmars-d at puremagic.com
Mon Jun 22 14:52:47 PDT 2015


On Monday, 22 June 2015 at 04:11:41 UTC, Andrei Alexandrescu 
wrote:
> Walter and I discussed what auto ref for templates should look 
> like and reached the conclusion that an approach based on 
> lowering would be best. I added a proposed lowering to 
> https://github.com/D-Programming-Language/dmd/pull/4717.

`For example, consider the declaration:`

ref int fun(auto ref int x);

`That should lower to:`

ref int fun(int' x);   /* or */   ref int fun('int x);


More information about the Digitalmars-d mailing list