An exegesis of Walter's reference counted slice
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Tue Feb 24 12:03:36 PST 2015
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
More information about the Digitalmars-d
mailing list