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

vitamin vit at vit.vit
Wed Mar 17 07:04:49 UTC 2021


On Wednesday, 17 March 2021 at 06:51:54 UTC, Max Haughton wrote:
> On Wednesday, 17 March 2021 at 06:35:16 UTC, vitamin wrote:
>> [...]
>
> Some thoughts: ignore the implementation for now, but think 
> about how the method based approach would change the language 
> specification - the whole thesis of this particular DIP is 
> (beyond move semantics themselves) to make move semantics (in a 
> sense) more natural than the C++ solution, whereas with a 
> method the decision to pass-by-move is now performed based on 
> the presence of specific template arg to the operator.
>
> [...]


Only thing I want is possibility to create template move/ctor. 
All other things stay same as in dip.



More information about the Digitalmars-d mailing list