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

Walter Bright newshound2 at digitalmars.com
Mon Mar 15 08:03:53 UTC 2021


On 3/13/2021 8:27 PM, tsbockman wrote:
> On Saturday, 13 March 2021 at 19:47:35 UTC, 12345swordy wrote:
>> How does the DIP interact with the current alias this system?
>> If I alias this a struct variable with move schematics in struct/class 
>> definition called A, does A have the move schematics of the struct variable?
> 
> According to the DIP, if A does not define explicit custom move operators,

There is no such thing as a "struct/class definition". Structs and classes are 
different. The DIP defines move semantics for structs, not for classes.


More information about the Digitalmars-d mailing list