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

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Mon Jun 2 15:46:03 EDT 2014

Ask your instructor whether it would be okay to learn Racket instead. 


On Jun 2, 2014, at 2:55 PM, Tim <vis.314.15 at gmail.com> wrote:

> I am using R5RS because I have to learn Scheme for a class.
> When I looked up some examples of using eval and all the ones that I saw
> for some reason had that
> user-initial-environment. So now it works thank you.
> 
> 
> On 06/02/2014 02:31 PM, Danny Yoo wrote:
>> 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)))
>> ###########################################
> 
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users



Posted on the users mailing list.