Nyquist / XLISP 2.0 -
Contents |
Tutorials |
Examples |
Reference
*breakenable*
Type: |
- |
system variable |
Source: |
- |
xldbug.c |
Syntax
- (setq *breakenable* boolean)
- boolean - a generalized boolean value
returns - non-NIL if errors shall be handled by the
Break Loop, or NIL if not
Description
The *breakenable* system variable controls entry to the
Break Loop and
the trapping of errors. If *breakenable* is set to
NIL , then no errors from the
system or from the error or
cerror functions will be trapped.
If *breakenable* is non-NIL,
the Break Loop
will handle these errors. The break
function is not affected by *breakenable* and will always force entry to the
Break Loop.
If the 'init.lsp' initialization file sets
*breakenable* to T ,
errors will be trapped by the
Break Loop.
Examples
> (defun foo (x) ; define function FOO
(+ x x))
FOO
> (setq *breakenable* NIL) ; disable break loop
NIL
> (foo "a")
error: bad argument type ; does NOT enter a break loop
> (setq *breakenable* T) ; enable break loop
T
> (foo "a")
error: bad argument type
1> ; entered a break loop
See also:
Back to Top
Nyquist / XLISP 2.0 -
Contents |
Tutorials |
Examples |
Reference