GC and slices

Walter Bright newshound at digitalmars.com
Wed Sep 20 21:52:38 PDT 2006


Oskar Linde wrote:
> This is a very short question regarding the liberties of the GC. Is it 
> safe to rely on data outside a slice?

Yes, because all a slice is is an interior pointer, and interior 
pointers hold the entire allocated chunk.



More information about the Digitalmars-d mailing list