Why do immutable variables need reference counting?

rikki cattermole rikki at cattermole.co.nz
Mon Apr 11 05:04:33 UTC 2022


Storage classes like immutable/const/shared are not tied to any memory 
management strategy. Nor does it dictate memory lifetime.

It only dictates how it can be interacted with when you have a reference 
to it.


More information about the Digitalmars-d-learn mailing list