Move Constructor Syntax
claptrap
clap at trap.com
Wed Oct 9 10:03:49 UTC 2024
On Wednesday, 9 October 2024 at 09:17:04 UTC, RazvanN wrote:
>
> Also, I agree with Jonathan and Paul that any discussion
> regarding the syntax of the move constructor should also
> include the copy constructor since we want to have consistent
> syntax across special functions. We don't want to have:
>
> ```d
> struct S
> {
> this(ref S s); // copy constructor
> =this(S s); // move constructor
> ... or ...
> this.move;
> }
> ```
>
> Regards,
> RazvanN
thisMove, thisCopy,
same rationale as opEquals, etc...
More information about the Digitalmars-d
mailing list