GOOC - Game Oriented Object C

GOOC - Game Oriented Object C

Next: The return_sup Statement, Previous: The break and continue Statements, Up: Statements
[Contents]

8.7. The return Statement

8.7. The return Statement

You can use the return statement to end the execution of a subroutine and return program control to the subroutine that called it. If the top-level subroutine returns, then the GOOL interpretation terminates and the game moves on.

Returning from a code thread will kill the object.