DIP 1018--The Copy Constructor--Community Review Round 1
iamthewilsonator at hotmail.com
Sat Dec 22 02:02:55 UTC 2018
On Saturday, 22 December 2018 at 00:08:51 UTC, Boris-Barboris
> On Friday, 21 December 2018 at 21:40:23 UTC, H. S. Teoh wrote:
>> Shouldn't const be inout in this case?
> Just in case: it's not my code, it's from the DIP example
> I was advocating for forbidden mutable copy source. Inout
> indeed solves the boilerplate/combinatorial problem, but my
> main conjecture was about readability, wich is harmed by
> mutable source default.
One of the primary use cases for this is ref-counting stuff, the
refcount needs to be mutable.
More information about the Digitalmars-d