[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

10.9 scheme.eval - R7RS eval

Module: scheme.eval

Exports bindings of R7RS (scheme eval) library. From R7RS programs, those bindings are available by (import (scheme eval)).

Function: eval expr environment

[R7RS] This is the same as Gauche’s built-in eval (see section eval と repl).

Function: environment import-list …

[R7RS] This is R7RS way to create an environment specifier suitable to pass to eval. In Gauche, an environment specifier is just a module object.

The argument is the same as what import takes. This procedure creates an empty envionment (as a fresh anonymous module; see make-module in モジュールイントロスペクション, for the details). The following example creates an environment that includes scheme.base bindings plus select-module syntax from Gauche.

 
(environment
 '(scheme base)
 '(only (gauche base) select-module))
 ⇒ #<module #f>  ; an anonymous module

[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated on July 19, 2014 using texi2html 1.82.