Discussion Thread: DIP 1040--Copying, Moving, and Forwarding--Community Review Round 1

Walter Bright newshound2 at digitalmars.com
Thu Mar 11 21:41:59 UTC 2021


On 3/11/2021 2:19 AM, deadalnix wrote:
> On Thursday, 11 March 2021 at 08:42:32 UTC, Walter Bright wrote:
>> Constructing from an rvalue essentially is move construction.
> 
> No, you need to destroy that rvalue.


Why? There can be no other uses of the rvalue, so why not simply move it?


More information about the Digitalmars-d mailing list