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

anonymous anonymous at example.com
Mon Dec 24 11:46:00 PST 2012


On Monday, 24 December 2012 at 18:50:12 UTC, Jonathan M Davis 
wrote:
> const int& i = foo(bar(min(5, 7)));
>
> which would allow a reference to be kept around, which D 
> disallows.

Does it?

const(int)* i = &foo(bar(min(5, 7)));


More information about the Digitalmars-d-learn mailing list