"ref const" parameters in functions

Timon Gehr timon.gehr at gmx.ch
Mon Apr 2 15:28:03 PDT 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.


More information about the Digitalmars-d-learn mailing list