Program termination: Difference between revisions
Content added Content deleted
(make separate sections →Pascal: and →Free Pascal) |
|||
Line 599: | Line 599: | ||
<lang DBL>IF (CONDITION) STOP</lang> |
<lang DBL>IF (CONDITION) STOP</lang> |
||
=={{header|Delphi |
=={{header|Delphi}}== |
||
<lang Delphi>System.Halt;</lang> |
<lang Delphi>System.Halt;</lang> |
||
or |
or |
||
Line 1,221: | Line 1,221: | ||
=={{header|PARI/GP}}== |
=={{header|PARI/GP}}== |
||
<lang parigp>if(stuff, quit)</lang> |
<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}}== |
=={{header|Perl}}== |