Challenge: write a reference counted slice that works as much as possible like a built-in slice
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Thu Nov 11 08:15:18 UTC 2021
On Thursday, 11 November 2021 at 00:35:56 UTC, deadalnix wrote:
> copy and destruction elision does not require to break the
> ctor/dtor invariant. I would know, the proposal that is now on
> the table is a variation of a proposal I made almost 10 years
> ago. And the move semantic part of it is broken.
If it requires a move to set it to ```.init``` then it is at
least highly inefficient. Just think about instances that are
64KiB in size (like buffer nodes).
More information about the Digitalmars-d
mailing list