RFC: safe ref counting

Meta jared771 at gmail.com
Sat May 2 05:49:59 UTC 2020


On Saturday, 2 May 2020 at 03:31:55 UTC, Steven Schveighoffer 
wrote:
> 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

Err... right. I wasn't thinking clearly.


More information about the Digitalmars-d mailing list