Move Constructors - Converting Lvalues to Rvalues
Atila Neves
atila.neves at gmail.com
Wed Oct 2 02:59:50 UTC 2024
On Tuesday, 1 October 2024 at 03:07:02 UTC, Richard (Rikki)
Andrew Cattermole wrote:
> On 01/10/2024 3:58 PM, Atila Neves wrote:
>> 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.
>
> SSA? What? That has nothing to do with it.
Not according to Amaury.
More information about the Digitalmars-d
mailing list