AA strange behavior

lanael no at mail.never
Mon Jun 12 13:13:32 PDT 2006


> There are other ways. For instance:
>
> foreach(key;aa.keys)
> 	aa.remove(key);

ah, yes, that's it. I remember now : the "keys" property !
I forgot about this one, thanks !
Now, I'm sure I need holidays, cause I also remember this question has 
already been asked :/


> or faster (as you seem to want to delete all elements), but ugly, hackish and 
> undocumented:

In fact, I have real code using this kind of AA in which I call some  
glDeleteTextures() functions... but thanks anyway !





More information about the Digitalmars-d-learn mailing list