diff options
Diffstat (limited to 'doc/ref/api-options.texi')
-rw-r--r-- | doc/ref/api-options.texi | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/ref/api-options.texi b/doc/ref/api-options.texi index 6dbc37062..493e2385d 100644 --- a/doc/ref/api-options.texi +++ b/doc/ref/api-options.texi @@ -554,6 +554,7 @@ Here is the list of evaluator trap options generated by typing exit-frame no Trap when exiting eval or apply. apply-frame no Trap when entering apply. enter-frame no Trap when eval enters new frame. +memoize-symbol no Trap when eval memoizes a symbol's value traps yes Enable evaluator traps. @end smallexample @@ -612,6 +613,20 @@ way. @var{retval} is the return value. @end deffn + +@deffn memoize-symbol-handler key cont expression env +Called when the evaluator memoizes the value of a procedure symbol + +@var{cont} is a ``debug object'', which means that it can be passed to +@code{make-stack} to discover the stack at the point of the trap. The +exit frame handler's code can capture a restartable continuation if it +wants to by using @code{call-with-current-continuation} in the usual +way. + +@var{retval} is the return value. +@end deffn + + @node Debugger options @subsubsection Debugger options |