Next: , Previous: Scheme Read, Up: Read/Load/Eval


28.3 Procedures for On the Fly Evaluation

— Scheme Procedure: eval exp
— C Function: scm_eval (exp)

Evaluate exp, a list representing a Scheme expression, in the top-level environment.

— Scheme Procedure: eval-string string
— C Function: scm_eval_string (string)

Evaluate string as the text representation of a Scheme form or forms, and return whatever value they produce.

— Scheme Procedure: apply:nconc2last lst
— C Function: scm_nconc2last (lst)

Given a list (arg1 ... args), cons the arg1 ... arguments onto the front of args, and return 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.\n

— Scheme Procedure: apply proc arg1 ... args

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.