"ref const" parameters in functions
Jonathan M Davis
jmdavisProg at gmx.com
Mon Apr 2 15:41:03 PDT 2012
On Tuesday, April 03, 2012 00:28:03 Timon Gehr wrote:
> On 04/02/2012 06:23 AM, Jonathan M Davis wrote:
> > No. It's not. It's a temporary, and temporaries are almost always rvalues.
> > The sole (and very bizarre) exception is struct literals (e.g. ABC(20) is
> > currently considered an lvalue).
>
> DMD 2.059head treats struct literals as rvalues.
Awesome!
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list