noob question about irrArray
Posted: Tue Aug 07, 2007 9:18 pm
Looking at the source code it appears when you call clear on an array it calls destructors of everything in the array.
Does this mean if i make an array of * and assign them things with new, that I don't have to delete them myself when im done with the array?
Thanks, my java background is making me question this![Smile :)](./images/smilies/icon_smile.gif)
Also, i have a map of fonts that i created with the new command using the truetype library. I want to drop them before cleaning up. If they are auto destroyed when I remove it i can't drop them, if I drop them first then remove them, won't that mess up the map since drop deletes the value and then what happens when the array destructs and auto deletes again.
If anyone has any answers to these questions on whats the proper way to go about this I would appreciate it![Smile :)](./images/smilies/icon_smile.gif)
Thanks.
Does this mean if i make an array of * and assign them things with new, that I don't have to delete them myself when im done with the array?
Thanks, my java background is making me question this
![Smile :)](./images/smilies/icon_smile.gif)
Also, i have a map of fonts that i created with the new command using the truetype library. I want to drop them before cleaning up. If they are auto destroyed when I remove it i can't drop them, if I drop them first then remove them, won't that mess up the map since drop deletes the value and then what happens when the array destructs and auto deletes again.
If anyone has any answers to these questions on whats the proper way to go about this I would appreciate it
![Smile :)](./images/smilies/icon_smile.gif)
Thanks.