DIP 1018--The Copy Constructor--Final Review

Nick Treleaven nick at geany.org
Sun Mar 3 13:06:31 UTC 2019


On Saturday, 2 March 2019 at 10:17:01 UTC, Olivier FAURE wrote:
> In the meantime, it's always possible to only allow const 
> arguments for copy constructors at first, and consider 
> non-const arguments once we've had a broader discussion on the 
> semantics of const in D.

Andrei has updated the DIP explaining why this wouldn't be a good 
@safe solution - see the `class Window` example:

https://github.com/dlang/DIPs/blob/5a10e274f7befcd2e615cdcbee549791cf11318e/DIPs/accepted/DIP1018.md#breaking-changes-and-deprecations

(He posted an update in the Announce thread - no one replied: 
https://forum.dlang.org/post/q57e9l$1582$1@digitalmars.com).


More information about the Digitalmars-d mailing list