-
Declaration:
- Procedure Exit ([Var X : return type )];
-
Description:
- Exit exits the current subroutine, and returns control to the calling routine. If invoked in
the main program routine, exit stops the program. The optional argument X allows to specify
a return value, in the case Exit is invoked in a function. The function result will then be
equal to X.
-
Errors:
- None.
-
See also:
- Halt (508)
Listing: refex/ex21.pp