Haven't got good way to go through type instances

BlitzMax Forums/BlitzMax Programming/Haven't got good way to go through type instances

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I am trying to figure out the best way to go through all the instances of a type. You can add them to a list in the New() method, but you have to create a special method to remove them from the list. One of the cool things about BMX is you can just delete objects by saying a=null, but now you have to write two lines just to delete an object:
a.destroy()
a=null

Or you can create a new function:
Function DeleteThing(a:thing)
a.destroy()
a=null

This is no good.

There must be a more efficient way to do this.