[gambit-list] macro problems
lowly coder
lowlycoder at huoyanjinjing.com
Thu Aug 13 06:44:33 EDT 2009
> This bar is in another world.
> Try to add the second parameter to eval (the environment), just to be sure
What are you referring to here? According to gambit-c.txt, the second
parameter, [ENV] is ignored.
-- procedure: eval EXPR [ENV]
The first parameter is a datum representing an expression. The
`eval' procedure evaluates this expression in the global
interaction environment and returns the result. If present, the
second parameter is ignored (it is provided for compatibility with
R5RS).
For example:
> (eval '(+ 1 2))
3
> ((eval 'car) '(1 2))
1
> (eval '(define x 5))
> x
5
More information about the Gambit-list
mailing list