April 02, 2012
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
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
1 2
Next ›   Last »