Move Constructor Syntax

Brad Roberts braddr at puremagic.com
Mon Oct 7 07:15:15 UTC 2024


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


More information about the Digitalmars-d mailing list