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

deadalnix deadalnix at gmail.com
Fri Mar 12 00:53:47 UTC 2021


On Thursday, 11 March 2021 at 21:41:59 UTC, Walter Bright wrote:
> Why? There can be no other uses of the rvalue, so why not 
> simply move it?

If you have two objects in your move constructor, but only one at 
the end, then a destruction must take place somewhere.


More information about the Digitalmars-d mailing list