How to re-initialise an associative array.

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Nov 6 10:06:17 PST 2013


On Wed, Nov 06, 2013 at 06:59:53PM +0100, Maxim Fomin wrote:
> On Wednesday, 6 November 2013 at 17:49:41 UTC, H. S. Teoh wrote:
> >
> >The GC will take care of cleaning up the old data.
> >
> >
> >T
> 
> Unfortunately it will not take care of calling struct destructors.

That applies regardless of how you re-initialize the AA, so that's
nothing to do with this particular problem. Struct dtors are known to
have many issues anyway.


T

-- 
People who are more than casually interested in computers should have at least some idea of what the underlying hardware is like. Otherwise the programs they write will be pretty weird. -- D. Knuth


More information about the Digitalmars-d-learn mailing list