Thread overview
opPostMove in druntime but not in dmd?
Nov 15, 2020
Per Nordlöw
Nov 15, 2020
Paul Backus
Nov 15, 2020
Per Nordlöw
November 15, 2020
I wan't aware that `opPostMove` has been implemented as a callback to `move` inside the druntime!

https://dlang.org/library/std/traits/has_elaborate_move.html

Why hasn't support for dmd been added already?
Lack of time?
November 15, 2020
On Sunday, 15 November 2020 at 13:43:19 UTC, Per Nordlöw wrote:
> I wan't aware that `opPostMove` has been implemented as a callback to `move` inside the druntime!
>
> https://dlang.org/library/std/traits/has_elaborate_move.html
>
> Why hasn't support for dmd been added already?
> Lack of time?

I believe that opPostMove was abandoned in favor of move constructors for more or less the same reason that postblits were abandoned in favor of copy constructors (that is, problems with const/immutable).

I'm not sure what the current status of move constructors is.
November 15, 2020
On Sunday, 15 November 2020 at 13:49:59 UTC, Paul Backus wrote:
> I believe that opPostMove was abandoned in favor of move constructors for more or less the same reason that postblits were abandoned in favor of copy constructors (that is, problems with const/immutable).

Ahh. I kind of knew that. Thanks.