This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: local-eval


<alexander.asteroth@informatik.uni-bonn.de> writes:
> ... Local eval (with
> a local environment) seems to be a good choice, but I can't figure out
> how to specify a proper environment. ...
I have "the-enviroment" defined as:
(define the-environment
  (procedure->syntax
   (lambda(x env) env)))
then you can do e.g.
(define foo (the-environment))
and later
(local-eval expr foo)

	/Roland