3.4.11. exit Command

This command is used to exit the program in a controlled way.

exit()

This command is used to terminate the application, invoking the necessary destructors on all the objects. This is needed for example to ensure files get closed and that the parallel interpreters shutdown correctly.

Example:

The following demonstrates the use of the exit command!

  1. Tcl Code

exit
  1. Python Code

exit()

Code Developed by: fmk