Jump to content

Icon+Unicon/Intro: Difference between revisions

m
Line 276:
=== Signals and Exceptions ===
====stop(expr)====
Terminates the current program and writes the result of expression to a file (&errout by default).
Terminate program with prejudice.
====error trapping====
The keyword &error is normally zero, but if set to a positive value, this sets the number of fatal errors that are tolerated and converted to expression failure; the value of &error is decremented if this happens. Therefore the now-common TRY-CATCH behaviour can be written as:
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.