DIP 1040

Walter Bright newshound2 at digitalmars.com
Sat Jul 13 16:51:41 UTC 2024


On 7/12/2024 11:36 PM, Richard (Rikki) Andrew Cattermole wrote:
> On 13/07/2024 7:46 AM, Walter Bright wrote:
>> https://github.com/dlang/DIPs/blob/master/DIPs/DIP1040.md
>>
>> We're going to get back on it.
> 
> We did some reading and reviewing of it last night.

We?


> Some observations:
> 
> 1. It could be simplified greatly if we had type state analysis (blit init over 
> it and be done with it).
> 2. Its acting in the form of an optimization, rather than trying to be 100% 
> moves only feature.
> 3. Isolated ala Midori could be used instead, and that buys us ownership 
> transfer for temporal safety.
> 4. The move constructor isn't great, it is too easily confused. It is closely 
> related to ``opAssign`` so ``opMove`` or ``opAssignMove`` might be better 
> candidates.
> 5. To make it move only, you can write and then disable the copy constructor 
> (would need documenting).
> 6. While it can work, the general consensus seems to be the tunings of the 
> design has some ways to go still.

Consensus of who?



More information about the Digitalmars-d mailing list