List within Types

BlitzMax Forums/BlitzMax Beginners Area/List within Types

JBR(Posted 2011) [#1]
Basically,

I have the Main_List with Type A objects

Now, Objects of type A have a field of Second_List of Type B

I'm concerned about garbage collection, if I remove the link in the Main_List, will this also garbage collect the Second_List?

Thanks
Jim


Jesse(Posted 2011) [#2]
yes it will as long as nothing else outside of type A object references Second_List.