Node:Fly Evaluation, Next:, Previous:Scheme Read, Up:Read/Load/Eval



28.3 Procedures for On the Fly Evaluation

See Environments.

eval exp module Scheme Procedure
scm_eval (exp, module) C Function
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.

interaction-environment Scheme Procedure
scm_interaction_environment () C Function
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.

eval-string string Scheme Procedure
scm_eval_string (string) C Function
Evaluate string as the text representation of a Scheme form or forms, and return whatever value they produce. Evaluation takes place in the environment returned by the procedure interaction-environment.

apply:nconc2last lst Scheme Procedure
scm_nconc2last (lst) C Function
Given a list (arg1 ... args), this function conses the arg1 ... arguments onto the front of args, and returns the resulting list. Note that args is a list; thus, the argument to this function is a list whose last element is a list. Note: Rather than do new consing, apply:nconc2last destroys its argument, so use with care.

apply proc arg1 ... args Scheme Procedure
proc must be a procedure and args must be a list. Call proc with the elements of the list (append (list arg1 ...) args) as the actual arguments.

primitive-eval exp Scheme Procedure
scm_primitive_eval (exp) C Function
Evaluate exp in the top-level environment specified by the current module.