Previous: Local Evaluation, Up: Read/Load/Eval


5.13.7 Evaluator Behaviour

The behaviour of Guile's evaluator can be modified by manipulating the evaluator options. For more information about options, See User level options interfaces. If you want to know which evaluator options are available, See Evaluator options.

— Scheme Procedure: eval-options [setting]

Display the current settings of the evaluator options. If setting is omitted, only a short form of the current evaluator options is printed. Otherwise, setting should be one of the following symbols:

help
Display the complete option settings.
full
Like help, but also print programmer options.

— Scheme Procedure: eval-enable option-name
— Scheme Procedure: eval-disable option-name
— Scheme Procedure: eval-set! option-name value

Modify the evaluator options. eval-enable should be used with boolean options and switches them on, eval-disable switches them off. eval-set! can be used to set an option to a specific value.

— Scheme Procedure: eval-options-interface [setting]
— C Function: scm_eval_options_interface (setting)

Option interface for the evaluation options. Instead of using this procedure directly, use the procedures eval-enable, eval-disable, eval-set! and eval-options.

— Scheme Procedure: traps [setting]

Display the current settings of the evaluator traps options. If setting is omitted, only a short form of the current evaluator traps options is printed. Otherwise, setting should be one of the following symbols:

help
Display the complete option settings.
full
Like help, but also print programmer options.

— Scheme Procedure: trap-enable option-name
— Scheme Procedure: trap-disable option-name
— Scheme Procedure: trap-set! option-name value

Modify the evaluator options. trap-enable should be used with boolean options and switches them on, trap-disable switches them off. trap-set! can be used to set an option to a specific value.

— Scheme Procedure: evaluator-traps-interface [setting]
— C Function: scm_evaluator_traps (setting)

Option interface for the evaluator trap options.