| 1. | a way or passage out: Please leave the theater by the nearest exit. |
| 2. | any of the marked ramps or spurs providing egress from a highway: Take the second exit after the bridge for the downtown shopping district. |
| 3. | a going out or away; departure: to make one's exit. |
| 4. | a departure of an actor from the stage as part of the action of a play. |
| 5. | Also called exit card. Bridge. a card that enables a player to relinquish the lead when having it is a disadvantage. |
| 6. | to go out; leave. |
| 7. | Bridge. to play an exit card. |
| 8. | to leave; depart from: Sign out before you exit the building. |
exit
1.
Equivalent functions, possibly with different names, exist in pretty much every programming language, e.g. "exit" in Microsoft DOS or "END" in BASIC.
On exit, the run-time system closes open files and releases other resources. An exit status code (a small integer, with zero meaning OK and other values typically indicating some kind of error) can be passed as the only argument to "exit"; this will be made available to the shell. Some languages allow the programmer to set up exit handler code which will be called before the standard system clean-up actions.
2. Any point in a piece of code where control is returned to the caller, possibly activating one or more user-provided exit handlers. This might be a return statement, exit call (in sense 1 above) or code that raises an error condition (either intentionally or unintentionally). If the exit is from the top-level routine then such a point would typically terminate the whole program, as in sense 1.
(2008-05-15)