Discussion: Rvalue refs and a Move construtor for D

Suleyman sahmi.soulaimane at gmail.com
Wed Sep 4 08:20:38 UTC 2019


On Wednesday, 4 September 2019 at 00:33:06 UTC, Exil wrote:
> How would it work with multi-function passing though? With a 
> rvalue reference, you are effectively just passing around a 
> reference.

That aspect of rvalue ref is simply assigning to a temporary then 
passing it by ref.

C++ example: https://cpp.godbolt.org/z/PRmkjd
D equivalent: https://d.godbolt.org/z/idPqIN



More information about the Digitalmars-d mailing list