RFC - Add optional reason string to halt



  • Hi, currently in my code, if/when it breaks and i'm away. It will try to reset global and re-validate memory by restarting. Always before calling halt i send a notification to try to know what broke, but even if it does trigger once in a while, that specific notification is never sent/received.

    Game.notify(messageString); Game.cpu.halt();

    All other notifications as long as halt is not called in the same tick are received. I think it would be easier to just allow Game.cpu.halt(messageString | errorObj); to do both in one call.