An exegesis of Walter's reference counted slice
Steven Schveighoffer via Digitalmars-d
digitalmars-d at puremagic.com
Thu Feb 26 08:44:29 PST 2015
On 2/24/15 3:03 PM, Andrei Alexandrescu wrote:
> On 2/24/15 11:55 AM, Steven Schveighoffer wrote:
>> Note, you need to GC.addRange all the elements if the type has
>> references, or else you cannot have GC pointers in the array. For
>> example, an array of class references could potentially result in those
>> references being collected before the array is gone.
>>
>> Ironically, if those elements are references, but are reference counted
>> references, then you wouldn't need to addRange. An interesting problem...
>
> Could you please add a detailed issue about this? Thanks. -- Andrei
>
I'm not sure what you mean by 'this'. As far as I can tell, it isn't a
bug in GC but a bug in your dpaste code.
-Steve
More information about the Digitalmars-d
mailing list