[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] making environments
From: |
Thomas Chust |
Subject: |
Re: [Chicken-users] making environments |
Date: |
Wed, 11 Aug 2004 12:41:15 +0200 |
User-agent: |
Mozilla Thunderbird 0.5 (X11/20040306) |
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.
cu,
Thomas