Delete a type?

BlitzMax Forums/BlitzMax Beginners Area/Delete a type?

Ok...I have a type. I when I create a new instance of it I store it in a TList. Ok np. When I am done with the instance I remove it from the TList. So how do you actually delete the instance of the type?

Example:

Type boom
   Field x,y
End Type

BoomList:TList = New TList

b:boom = new boom
b.x=1
b.y=1
BoomList.Addlast b

'Now to delete it fully
BoomList.Remove b
Delete b


As you can see the b.boom is removed from the list. But the Delete command is disabled. How do you fully delete the b.boom type?