Want reasonable reference counting? Disable automatic sharing of immutable

rikki cattermole rikki at cattermole.co.nz
Sun Nov 14 22:20:20 UTC 2021


On 15/11/2021 9:04 AM, H. S. Teoh wrote:
> IOW, const becomes unusable with any object that could potentially
> contain a ref-counted sub-object.

I've mentioned this before, but this pattern could be rectified with 
scope + ARC.


More information about the Digitalmars-d mailing list