Thread overview | |||||
---|---|---|---|---|---|
|
November 15, 2020 opPostMove in druntime but not in dmd? | ||||
---|---|---|---|---|
| ||||
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 Re: opPostMove in druntime but not in dmd? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Per Nordlöw | 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 Re: opPostMove in druntime but not in dmd? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paul Backus | 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.
|
Copyright © 1999-2021 by the D Language Foundation