[Contents] · [Home] · [Mail]

SALIERI Language - abort

Type:
abort: () -> ()
abort: string -> ()

Call syntax:
abort()
abort(errorMsg)

Description:
A call to function abort ends the execution of the running SALIERI program or command-line and returns to the prompt; an error condition is generated which contains the message in errorMsg (if specified). Furtheron, the function from which abort was called and the line number of the abort-call within that function is reported.

Example:
> f:= FUNC(0,`write("inside f"); abort("demo abort"); write("never reached");´);
> f();
demo abort
Aborted in function "f", line 1.

See also:


[Contents] · [Home] · [Mail]
© sic!systems, page frame designed by hh; this page has been automatically generated from the SALIERI Documentation Database.