structs are now lvalues - what is with "auto ref"?

Era Scarecrow rtcvb32 at yahoo.com
Tue Jan 1 00:49:28 PST 2013


On Monday, 24 December 2012 at 19:09:35 UTC, Jonathan M Davis 
wrote:
> On Monday, December 24, 2012 20:03:24 monarch_dodra wrote:
>> Snap. You got me.
>
> It wouldn't matter if the function accepted its argument by 
> value. You'd still be returning a reference to a variable that 
> doesn't exist anymore.

  So what if it does exist? Say the temporary lives as long as the 
current scope lives?


More information about the Digitalmars-d-learn mailing list