Go to the first, previous, next, last section, table of contents.
error
error()
forces a similar behavior in a user program.
error()
will be executed.
error()
upon finding such an error in your program
text.
% cat mod3 def mod3(A) { if ( type(A) >= 2 ) error("invalid argument"); else return A % 3; } end$ % asir [0] load("mod3"); 1 [3] mod3(5); 2 [4] mod3(x); invalid argument stopped in mod3 at line 3 in file "./mod3" 3 error("invalid argument"); (debug) print A A = x (debug) quit return to toplevel [4]
debug
.
Go to the first, previous, next, last section, table of contents.