Move Constructors - Converting Lvalues to Rvalues

Per Nordlöw per.nordlow at gmail.com
Tue Oct 1 04:55:43 UTC 2024


On Monday, 30 September 2024 at 19:37:04 UTC, Timon Gehr wrote:
> Otherwise, maybe expose explicit moves. This is useful 
> generally. Can just be `move(x)`, where `move` is either 
> special, or is a function with a "move by default" attribute on 
> its parameter, as we discussed previously.

Considering the template-complexity of the current implementation 
of `core.lifetime.move` it will beneficial compile-time wise to 
make `move` become a builtin. Ideally I would like to have a 
special syntax for converting an l-value to an r-value.


More information about the Digitalmars-d mailing list