Move Constructor Syntax
Paul Backus
snarwin at gmail.com
Sun Oct 6 17:26:51 UTC 2024
On Sunday, 6 October 2024 at 17:06:10 UTC, Walter Bright wrote:
> People took to `~this` like a duck to water, so I don't think
> it'll be a big deal for `=this` to be a move constructor. After
> all, it's better than the C++ `S(S&&)` by a mile!
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.
More information about the Digitalmars-d
mailing list