Handbook
Glossary
:res ( n -- * )
Factor handbook
»
The language
»
Exception handling
»
The debugger
Prev:
:3 ( -- * )
Vocabulary
debugger
Inputs
n
a positive integer
Outputs
None
Word description
Continues executing the
n
th restart. Since restarts may only be invoked once, this resets the
restarts
global variable.
Definition
USING:
accessors
continuations
kernel
math
namespaces
sequences
;
IN:
debugger
:
:res
( n -- * )
1
-
restarts
[
nth
f
]
change-global
[
dup
no-op-restart
=
[
drop
f
]
when
]
change-obj
continue-restart
;