RCArray is unsafe

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Tue Mar 3 08:31:07 PST 2015


On 3/3/15 7:38 AM, Zach the Mystic wrote:
> On Monday, 2 March 2015 at 22:58:19 UTC, Walter Bright wrote:
>> Pretty dazz idea, dontcha think? And DIP25 still stands unscathed :-)
>>
>> Unless, of course, we missed something obvious.
>
> I was dazzed, but I'm not anymore. I wrote my concern here:
>
> http://forum.dlang.org/post/ylpaqhnuiczfgfpqjuww@forum.dlang.org

There's a misunderstanding here. The object being assigned keeps a 
trailing list of past values and defers their deallocation to 
destruction. -- Andrei



More information about the Digitalmars-d mailing list