[Article] D's Garbage Collector Problem

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 13 12:20:50 PDT 2014


On 09/13/2014 09:07 PM, "Marc =?UTF-8?B?U2Now7x0eiI=?= 
<schuetzm at gmx.net>" wrote:
> Wouldn't `const` be enough? AFAICS, `immutable` is mostly useful for
> shared data.

const prevents modification, but does not guarantee that no modification 
takes place elsewhere. I.e. it enables fewer program transformations.


More information about the Digitalmars-d mailing list