guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Transient environment with standard functions


From: Matthew Keeter
Subject: Transient environment with standard functions
Date: Sat, 28 May 2016 16:16:45 -0400

I’m trying to generate a temporary, transient environment that a useful set of 
functions in it.

The use case is eval’ing a set of small code strings.  Each environment needs 
to be
independent, so previous eval’s don’t leave anything in the environment.

I can make a dummy environment with (null-environment 5), but it’s missing 
everything
useful.  Calling (scheme-report-environment 5) gives me a useful environment, 
but the
environment is shared (so effects from one eval can carry over, which is 
undesirable).

Any pointers?  (resolve-module) seems like it could be useful, but the 
#:version argument
doesn’t seem to work.

Thanks,
Matt


reply via email to

[Prev in Thread] Current Thread [Next in Thread]