popFront causing more memory to be used

Jonathan M Davis jmdavisProg at gmx.com
Tue Jul 3 08:28:37 PDT 2012


On Tuesday, July 03, 2012 15:29:51 bearophile wrote:
> ixid:
> > Given popFront is advancing a range does this mean the
> > underlying array is not being deleted? How would one delete the
> > information you don't need any more if so?
> 
> I think the GC can't deallocate part of an array. It's a single
> memory zone, and it has to go all at once.

http://dlang.org/d-array-article.html

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list