when is the object destuctor called?

Jarrett Billingsley kb3ctd2 at yahoo.com
Mon May 22 10:07:20 PDT 2006


"Tom S" <h3r3tic at remove.mat.uni.torun.pl> wrote in message 
news:e4spkf$bq7$1 at digitaldaemon.com...

> Oh, and a question to Jarrett: why are you holding textures in an 
> associative array ? Just to be able to release textures in a O(log n) time 
> ? If so, how about a double - linked list, like the one Chris presented 
> recently on D.announce ? The AA seems weird :P

Fast insert, fast delete, easy to loop through, and most of all, it's 
built-in ;)  It's just how I implement a "set" with AAs - that is, no order 
necessary, just to keep track of all the items created and to be able to 
loop through them all. 





More information about the Digitalmars-d mailing list