Object.toString, toHash, opCmp, opEquals
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Fri Apr 26 01:39:27 UTC 2024
On 26/04/2024 12:57 PM, Walter Bright wrote:
> As I recall, it was you that pointed out that reference counting can
> never be safe if two mutable pointers to the same ref counted object
> (one to the object, the other to its interior) were passed to a
> function. (Freeing the first can leave the second interior pointer
> pointing to a deleted object.) The entire ref counting scheme capsized
> because of this.
This is the first time I have heard of this being a concern of yours.
Stuff like this is always solvable if we acknowledge (in other words
write them all down) what the requirements are!
More information about the Digitalmars-d
mailing list