Move Constructor Syntax
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Mon Oct 7 07:26:40 UTC 2024
On 07/10/2024 8:15 PM, Brad Roberts wrote:
> On 10/5/2024 9:04 PM, Walter Bright via Digitalmars-d wrote:
>> ```
>> struct S { ... }
>>
>> this(ref S) // copy constructor
>> this(this) // postblit
>> //this(S) // move constructor
>> ~this() // destructor
>
> Not sure this actually would work well or not, but figured I'd add it to
> the list for consideration:
>
> this (move S) // move constructor
We have had multiple people suggesting something to this equivalence
including this specific syntax.
More information about the Digitalmars-d
mailing list