std.collection lets rename it into std,ridiculous.
H. S. Teoh
hsteoh at quickfur.ath.cx
Mon Feb 20 11:40:40 PST 2012
On Mon, Feb 20, 2012 at 07:42:07PM +0100, a wrote:
> >But if you only access it via push() and pop(), then there are no
> >other references to the stack, so why should the GC reallocate it
> >on append?
>
> Because the GC doesn't know there aren't any other references to it
> unless you tell it with assumeSafeAppend.
Ahh, I see. Thanks!
T
--
Being able to learn is a great learning; being able to unlearn is a greater learning.
More information about the Digitalmars-d
mailing list