why @property cannot be pass as ref ?

Mengu mengukagan at gmail.com
Wed Dec 20 18:16:37 UTC 2017


On Wednesday, 20 December 2017 at 18:04:57 UTC, Ali Çehreli wrote:
> On 12/20/2017 07:02 AM, ChangLong wrote:
> > [...]
> is not
> > [...]
>
> The problem is not with opAssign but with left(), which returns 
> an rvalue. It's by design that rvalues cannot be bound to 
> references in D.
>
> [...]

was just reading this: 
https://p0nce.github.io/d-idioms/#Rvalue-references:-Understanding-auto-ref-and-then-not-using-it


More information about the Digitalmars-d-learn mailing list