Want reasonable reference counting? Disable automatic sharing of immutable

Elronnd elronnd at elronnd.net
Sun Nov 14 11:04:08 UTC 2021


On Sunday, 14 November 2021 at 09:28:14 UTC, Ola Fosheim Grøstad 
wrote:
> On Sunday, 14 November 2021 at 09:19:24 UTC, Elronnd wrote:
>> I don't think this makes pure functions less interesting or 
>> meaningful from a practical standpoint.
>
> Just remove the claim that D privides strong purity... Leave it 
> at weakly pure and list known caveats.

Yes!  It is already not strongly pure because it can mutate 
through its parameters.


More information about the Digitalmars-d mailing list