RCArray is unsafe
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Wed Mar 4 02:48:57 PST 2015
On 3/4/2015 2:03 AM, deadalnix wrote:
> A free list does not work as the data can be live.
It is a "to free" list.
> You need to maintain metadata about allocation in
> another structure.
I don't see why.
> Also you cannot free anything until all the refcount are to 0.
Right.
> This RC system will only cut it for short lived entities.
Not a problem if they aren't constantly reassigning the value.
More information about the Digitalmars-d
mailing list