On Mon, Jun 2, 2014 at 10:45 AM, Tim <vis.314...@gmail.com> wrote: > Hi, I am using DrRacket 6.0.1 with language R5RS when I try to evaluate the > statement: > (eval '(+ 1 2) user-initial-environment) > I get the error: > "user-initial-environment: undefined;" > > Am I doing something wrong? Thank you.
Hi Tim, (Is there a reason why you're using r5rs, out of curiosity?) Reading docs... ok! Is user-initial-environment a part of r5rs, or an extension to the standard? I'm looking at: http://groups.csail.mit.edu/mac/ftpdir/scheme-reports/r5rs-html/r5rs_8.html#SEC65 and I see no occurrence of "user-initial-environment" in the official R5RS standard. The following does appear to do something: ########################################### (display (eval '(+ 1 2) (scheme-report-environment 5))) ########################################### ____________________ Racket Users list: http://lists.racket-lang.org/users