Move Constructor Syntax

Daniel N no at public.email
Mon Oct 7 18:23:51 UTC 2024


On Monday, 7 October 2024 at 18:04:58 UTC, H. S. Teoh wrote:
>
> What about:
>
> 	this(~T t)
>
> The ~ being an allusion to ~this, the idea being that after the 
> move the operand t will effectively have been destructed and 
> invalid.
>
>
> T

I love it! intuitive (unlike most of the other suggestions).



More information about the Digitalmars-d mailing list