Program termination: Difference between revisions

make separate sections →‎Pascal: and →‎Free Pascal
(make separate sections →‎Pascal: and →‎Free Pascal)
Line 599:
<lang DBL>IF (CONDITION) STOP</lang>
 
=={{header|Delphi}}/{{header|Pascal}}==
<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.&nbsp;[[#Delphi|Delphi]]).
<lang pascal>if true then
begin
halt
end</lang>All regular cleanup procedures apply, nothing special.
 
=={{header|Perl}}==
149

edits