Discussion: Rvalue refs and a Move construtor for D

Manu turkeyman at gmail.com
Sat Sep 7 06:03:38 UTC 2019

On Fri, Sep 6, 2019 at 3:55 PM Suleyman via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> On Friday, 6 September 2019 at 22:32:55 UTC, Manu wrote:
> > S is an rvalue; there are no other references to S. That's the
> > point.
> With rvalue ref there is a reference. That's the point of rvalue
> ref passing rvalue around by reference.

The whole point is to destroy the source value though, because there's
no external reference to it. If you receive an rvalue ref, it's yours
to do as you like with it.

More information about the Digitalmars-d mailing list