Michele Simionato wrote:
> [...]
#;> (require-extension environments)
#;> (define my-env (make-environment))
#;> (environment-copy (interaction-environment) my-env)
Error: can not copy interaction environment
So, how do I go? It would be enough for me to start
from a r5rs-like environment. The problem is that
make-environments returns a completely empty environment
which is not what I want (I want to evaluate Scheme
code in this environment).
Shouldn't it suffice to do
(define my-env (scheme-report-environment 5)) ?
This is even R5RS compliant and doesn't need the environments extension.
It also fullfills
(equal? my-env (scheme-report-environment 5)) => #f
as soon as you changed something in my-env.