Want reasonable reference counting? Disable automatic sharing of immutable

Danni Coy danni.coy at gmail.com
Mon Nov 15 09:28:41 UTC 2021


rather than punching a hole in const/immutable

struct S
meta {
int refCount;
....
}
do {
 int payload;
....
}

Immutable S s is now conceptually an immutable object and a mutable
object with metadata behind the scenes
that feels like a single object from a user perspective?


More information about the Digitalmars-d mailing list