Next: Loading, Previous: Scheme Read, Up: Read/Load/Eval
See Environments.
Evaluate exp, a list representing a Scheme expression, in the top-level environment specified by module. While exp is evaluated (using
primitive-eval
), module is made the current module. The current module is reset to its previous value when eval returns. XXX - dynamic states. Example: (eval '(+ 1 2) (interaction-environment))
Return a specifier for the environment that contains implementation–defined bindings, typically a superset of those listed in the report. The intent is that this procedure will return the environment in which the implementation would evaluate expressions dynamically typed by the user.
Evaluate string as the text representation of a Scheme form or forms, and return whatever value they produce. Evaluation takes place in the given module, or in the current module when no module is given. While the code is evaluated, the given module is made the current one. The current module is restored when this procedure returns.
Call proc with arguments arg1 ... argN plus the elements of the arglst list.
scm_apply
takes parameters corresponding to a Scheme level(lambda (proc arg . rest) ...)
. So arg and all but the last element of the rest list make up arg1...argN and the last element of rest is the arglst list. Or if rest is the empty listSCM_EOL
then there's no arg1...argN and arg is the arglst.arglst is not modified, but the rest list passed to
scm_apply
is modified.
Call proc with the given arguments.
lst should be a list (arg1 ... argN arglst), with arglst being a list. This function returns a list comprising arg1 to argN plus the elements of arglst. lst is modified to form the return. arglst is not modified, though the return does share structure with it.
This operation collects up the arguments from a list which is
apply
style parameters.