1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-29 16:30:19 +02:00

(scm_eval): Added example to docstring. Thanks to Issac

Trotts!
This commit is contained in:
Marius Vollmer 2005-01-10 20:25:39 +00:00
parent 1d18f1b199
commit 1882a272f7

View file

@ -4152,7 +4152,8 @@ SCM_DEFINE (scm_eval, "eval", 2, 0, 0,
"in the top-level environment specified by @var{module}.\n" "in the top-level environment specified by @var{module}.\n"
"While @var{exp} is evaluated (using @code{primitive-eval}),\n" "While @var{exp} is evaluated (using @code{primitive-eval}),\n"
"@var{module} is made the current module. The current module\n" "@var{module} is made the current module. The current module\n"
"is reset to its previous value when @var{eval} returns.") "is reset to its previous value when @var{eval} returns.\n"
"Example: (eval '(+ 1 2) (interaction-environment))")
#define FUNC_NAME s_scm_eval #define FUNC_NAME s_scm_eval
{ {
SCM_VALIDATE_MODULE (2, module); SCM_VALIDATE_MODULE (2, module);