April 02, 2012 Re: "ref const" parameters in functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | 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.
|
April 02, 2012 Re: "ref const" parameters in functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Timon Gehr | 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
|
Copyright © 1999-2021 by the D Language Foundation