Move Constructors - Converting Lvalues to Rvalues
Atila Neves
atila.neves at gmail.com
Tue Oct 1 02:58:12 UTC 2024
On Monday, 30 September 2024 at 20:28:05 UTC, Richard (Rikki)
Andrew Cattermole wrote:
> I suspect that we're going in an entirely wrong direction with
> move constructors for two reasons:
>
> 1. Nobody has been able to answer what the purpose of them is,
> is it an optimization, is it ownership transfer system (which
> is better done with isolated).
My understanding is that we need SSA in order to implement
isolated. And so for now I'd say it's an optimisation mostly, but
also bug prevention with move-only types.
More information about the Digitalmars-d
mailing list