Matchbox 0.2

exit

Terminate the current program. Matchbox returns an exit status of 0 to the host environment.

Signature

func exit()

Parameters

exit does not accept any parameters.

Return Value

exit does not return because it terminates the program.

Example

print(10)
exit()
print(20)

The program writes 10 and then terminates successfully. The second call to print is not reached.