Discussion: Rvalue refs and a Move construtor for D
Olivier FAURE
couteaubleu at gmail.com
Thu Aug 29 08:13:05 UTC 2019
On Wednesday, 28 August 2019 at 23:32:01 UTC, Suleyman wrote:
> Give me your thoughts on which way you prefer. And most
> importantly I want you to convince me why adding rvalue refs is
> good for D because there aren't many use cases that I know of.
An alternative solution to rvalue refs would be uniqueness
semantics, which is how Rust solves move assignment (you can't
move a variable's contents if it's being borrowed).
Problem: D currently doesn't have baked-in unique references.
More information about the Digitalmars-d
mailing list