Move Constructor Syntax

Guillaume Piolat guillaume.piolat at gmail.com
Mon Oct 7 17:42:53 UTC 2024


On Monday, 7 October 2024 at 17:29:20 UTC, Dejan Lekic wrote:
> On Sunday, 6 October 2024 at 04:04:28 UTC, Walter Bright wrote:
>> It may take a bit of getting used to. I kinda prefer (1) as it 
>> is sorta like `~this()`.
>
> Maybe silly idea, but could we name it moveThis() and 
> copyThis() ??

How about reusing one of those shift operators keyword.

this<<<(T other)


More information about the Digitalmars-d mailing list