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