Passing an environment to an EVAL-like function

From: gantar (r.gantar_at_uptime.at)
Date: 04/30/04


Date: Fri, 30 Apr 2004 01:20:13 +0200

Dear cll,

I want to pass a form to a function for evaluation.
EVAL does can't access local variables. Is there an
EVAL that works with ENV (I once saw that Scheme's
EVAL accepts an ENV-parameter)?

Perhaps I'm totally off track anyway. What I want
to do is build a state-machine that performs
some predefined operation upon a given input.
For that I store the possible inputs and what to
do with it (a form) in a table. Isn't this
pretty lispish?

The simplest way to go is to ditch the local
variables, but I'm scared off of name-clashes
and the mess variables in the global namespace
make.

Kind regards, tip of the propeller-hat
Gantar