RFC: safe ref counting
Steven Schveighoffer
schveiguy at gmail.com
Sat May 2 03:31:55 UTC 2020
On 5/1/20 10:52 PM, Meta wrote:
> Is it not enough to add a flag to RefCounted that tells it to destroy
> (but not deallocate) the ref counted object, instead of deallocating it?
> Then it could be conditionally @safe.
You mean for Phobos? Phobos uses C malloc/free, so no. Something has to
deallocate it.
If you mean something else, I'm not sure what you mean.
-Steve
More information about the Digitalmars-d
mailing list