Program termination: Difference between revisions
Content added Content deleted
(make separate sections →Pascal: and →Free Pascal) |
|||
Line 599:
<lang DBL>IF (CONDITION) STOP</lang>
=={{header|Delphi
<lang Delphi>System.Halt;</lang>
or
Line 1,221:
=={{header|PARI/GP}}==
<lang parigp>if(stuff, quit)</lang>
=={{header|Pascal}}==
{{works with|Extended Pascal}}
Extended Pascal (ISO standard 10206) defines a (parameter-less) <tt>procedure</tt> <tt>halt</tt>.
UCSD Pascal’s <tt>halt</tt> takes one <tt>integer</tt> argument (cf. [[#Delphi|Delphi]]).
<lang pascal>if true then
begin
halt
end</lang>All regular cleanup procedures apply, nothing special.
=={{header|Perl}}==
|