Move Constructor Syntax

Dom Disc dominikus at scherkl.de
Sun Oct 6 19:08:18 UTC 2024


On Sunday, 6 October 2024 at 17:26:51 UTC, Paul Backus wrote:
> If we adopt `=this` as the move-constructor syntax, what will 
> we use if we decide to add a dedicated copy-constructor syntax 
> in the future? The `=` symbol is used for both moves and 
> copies, after all.

I would vote for >this as move and =this as copy constructor (the 
arrow often indicates some kind of move, and equal is often used 
to indicate similarity - maybe not yet not in C but in the world 
outside of programming languages).


More information about the Digitalmars-d mailing list