RCArray is unsafe

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Mon Mar 2 15:24:22 PST 2015


On 3/2/2015 3:22 PM, Andrei Alexandrescu wrote:
> And since an RCArray may undergo several assignments during its lifetime (thus
> potentially needing to free several chunks of memory), the arrays to be
> destroyed will be kept in a freelist-style structure. Destructor walks the
> freelist and frees the chunks.

Right, I had neglected to add that.



More information about the Digitalmars-d mailing list