DIP 1018--The Copy Constructor--Final Review

Paolo Invernizzi paolo.invernizzi at gmail.com
Sun Mar 3 21:33:07 UTC 2019


On Sunday, 3 March 2019 at 13:06:31 UTC, Nick Treleaven wrote:
> 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).

__mutable

- Paolo


More information about the Digitalmars-d mailing list