opPostMove in druntime but not in dmd?
Paul Backus
snarwin at gmail.com
Sun Nov 15 13:49:59 UTC 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.
More information about the Digitalmars-d
mailing list