[racket] DrRacket 6.0.1 with R5RS user-initial-environment

From: Danny Yoo (dyoo at hashcollision.org)
Date: Mon Jun 2 14:31:11 EDT 2014

On Mon, Jun 2, 2014 at 10:45 AM, Tim <vis.314.15 at 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)))
###########################################

Posted on the users mailing list.