onexit()

I’m thinking it might be handy to have an onexit() function, called when someone presses the “back” or “reset” (maybe) buttons, or when Codea itself gets a notification to exit, so that the running program could, say, save state. Kinda like how an app gets a notice to clean up and exit from iOS. I can fake it by just saving state every second or so, but seems wasteful. Just a suggestion - if it seems reasonable, I’ll put it in the tracker.

Great idea.
Yes please do that!

I’m still trying to work out what one xit is …

(whatever it is, it sounds like a good idea)

+1

onExit() perhaps? :slight_smile:

(I’ve never been a fan of StudlyCaps)