DIP 1014:Hooking D's struct move semantics--Community Review Round 1
Kagamin
spam at here.lot
Thu May 17 16:08:51 UTC 2018
On Thursday, 17 May 2018 at 13:50:26 UTC, Shachar Shemesh wrote:
> There is no such use case. Please remember that at the time
> opPostMove is called, both new and old memory are still
> allocated.
That's an interesting moment too. A struct that was supposed to
be moved is copied instead and exists in two places
simultaneously. Can't tell it yet, but it can have a hole in type
system and opPostMove can only be trusted, not safe.
More information about the Digitalmars-d
mailing list