?
function DestroyObj(other) -- NOTE! The object may already be destroyed at this point but the copy of the object stored in the other function is still there -- how can i tell if the table in event.other is not destroyed -- For example in C++ i would use a pointer but ... this is LUA :( -- i thought display.remove(other) would return false if it didnt work but it doesnt end function onCollision(self,event) self.otherobj[#self.nextobjecttodestroy+1] = event.other end