Program termination: Difference between revisions

Content added Content deleted
(→‎{{header|Wren}}: Updated to v0.4.0.)
Line 1,021: Line 1,021:
</pre>
</pre>


=={{header|Mathematica}}==
=={{header|Mathematica}}/{{header|Wolfram Language}}==
<lang Mathematica>If[problem, Abort[]];</lang>
<lang Mathematica>If[problem, Abort[]];</lang>
Kernels stop all computation after "Abort[]" command. But the kernels are still operational, and all definitions are still available. Note that an Abort[] can be caught by a calling function using <code>CheckAbort</code>, in which case the computation will continue at that place.
Kernels stop all computation after "Abort[]" command. But the kernels are still operational, and all definitions are still available. Note that an Abort[] can be caught by a calling function using <code>CheckAbort</code>, in which case the computation will continue at that place.