end

From Wiki of ZZT
Jump to navigation Jump to search

#end is a ZZT-OOP command for ending code execution. It achieves this by setting the Object code position to -1. Execution can be restored by sending a message to the affected Object.

Quirks

  • The ZZT-OOP parser will treat the character 00h (a null terminator) as equivalent to #end. As object code strings are length-prefixed and not null-terminated, this allows storing 00h characters as part of the code and saving a few bytes per occurence.