Program termination: Difference between revisions
Content deleted Content added
MATLAB-Code added |
m →Icon and Unicon: header simplification |
||
Line 284: | Line 284: | ||
Script editing is resumed on next start. |
Script editing is resumed on next start. |
||
== |
=={{header|Icon}} and {{header|Unicon}}== |
||
==={{header|Icon}}=== |
|||
<lang Icon>exit(i) # terminates the program setting an exit code of i |
<lang Icon>exit(i) # terminates the program setting an exit code of i |
||
stop(x1,x2,..) # terminates the program writing out x1,..; if any xi is a file writing switches to that file |
stop(x1,x2,..) # terminates the program writing out x1,..; if any xi is a file writing switches to that file |
||
runerr(i,x) # terminates the program with run time error 'i' for value 'x'</lang> |
runerr(i,x) # terminates the program with run time error 'i' for value 'x'</lang> |
||
==={{header|Unicon}}=== |
|||
The Icon solution works in Unicon. |
|||
=={{header|J}}== |
=={{header|J}}== |