Halt;or
Halt (ExitCode: Integer);
Halt
terminates the program with exitcode 0. If ExitCode
,
is specified, it is returned by Halt
on exit.
Halt
is an Extended Pascal and a UCSD Pascal extension.
program HaltDemo; begin WriteLn ('This string will always be this program''s output.'); Halt; { Terminate right here and right now. } WriteLn ('And this string won''t ever!') end.