Program termination: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: syntax coloured) |
|||
Line 1,262: | Line 1,262: | ||
exit(1);</lang> |
exit(1);</lang> |
||
The <code>register_shutdown_function()</code> function can be used to register functions to be run when the program exits. |
The <code>register_shutdown_function()</code> function can be used to register functions to be run when the program exits. |
||
=={{header|Picat}}== |
|||
<lang Picat> |
|||
% ... |
|||
if problem then |
|||
halt |
|||
end, |
|||
% ... |
|||
</lang> |
|||
or |
|||
<lang Picat> |
|||
% ... |
|||
if problem then |
|||
exit |
|||
end, |
|||
% ... |
|||
</lang> |
|||
=={{header|PicoLisp}}== |
=={{header|PicoLisp}}== |