? Deleted Types that contain lists

BlitzMax Forums/BlitzMax Programming/? Deleted Types that contain lists

Duckstab[o](Posted 2005) [#1]
I have a Map Type that contains Layerlists to hold layer drawing info

ie

Type Map
Field Base1List:Tlist
Field Blend1List:Tlist
Field Shade1list:Tlist
Field Light1list:Tlist
ect
End Type

Type Layer
Field GL_X[]
Field GL_Y[]
End Type


The Layer Types are added to the lists in the Map type and the Map type is added to a Maplist.

If i delete a instance of map from maplist will this really delete all instances of layer contained within Map Layerlists.

This is what i hope to achieve to speed up creation and destruction by deleting whole branches when not needed.

any feedback welcome Cheers :)


FlameDuck(Posted 2005) [#2]
If i delete a instance of map from maplist will this really delete all instances of layer contained within Map Layerlists.
Providing there are no other references to them, yes.


Perturbatio(Posted 2005) [#3]
and remember to use flushmem


BlitzSupport(Posted 2005) [#4]

and remember to use flushmem


Don't worry about that--by the end of the week, all being well, you won't need it.


Duckstab[o](Posted 2005) [#5]
thanks n all (autoflushmen) \o,