This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: Guile API's (Re: About modules)
Moshe Zadka <moshez@math.huji.ac.il> writes:
> IIRC, it's (eval <list> <env.>). The string->list conversion is usually
> done via the builtin "read".
Not quite. It's:
(eval <expression> <environment-specifier>)
An <expressions> can be a symbol or a literal as well as a list.
This means that you cannot combine the two variants, since
(eval "(+ 2 3)" env) is "(+ 2 3)", not 5.
Also, R5RS doesn't have environments - only a finite set of
environment-specifiers.
--
--Per Bothner
per@bothner.com http://www.bothner.com/~per/