deleting types

BlitzMax Forums/BlitzMax Programming/deleting types

Can you explain why I 'can not and should not?'

I want to be able to have the original type deleted as I delete each item in a list.


i.e.

	Method freeMedPak()

			if self.quiz:TMedPakQuiz <> null 
				For Local n:TMedPakQuiz = EachIn self.quizList:TList
					n.free() 
				next 
			end if
	End Method


This would loop through the list and n.free() would preferably cause the link in the list to be deleted as well as the type instance