Issues with immutable/inout
Atila Neves
atila.neves at gmail.com
Fri May 15 14:38:54 UTC 2020
On Friday, 15 May 2020 at 11:08:36 UTC, Timon Gehr wrote:
> On 15.05.20 12:13, burt wrote:
>> Hello,
>>
>> Since D's const, immutable and inout are transitive, it is
>> more difficult to write const-correct code.
>
> There's no such thing. This is a C++-ism.
In D I just take it to mean "usable with const or immutable
instances". It's a shame (to me at least!) that the default is a
mutable `this`.
More information about the Digitalmars-d
mailing list