[racket] Different behavior when using (#%require scheme/base)

From: Yaron Gonen (yaron.gonen at gmail.com)
Date: Tue Mar 8 07:37:19 EST 2011

Hi,
(I'm using Dr Scheme version 4.2.2, with language R5RS, and the "Disallow
redefining" is *not* checked.)

The following code works perfectly:
(define exp
  (lambda (b e)
    (if (= e 0) 1
        (* b (exp b (- e 1))))))
(exp 2 5)

However, when I include the line (#%require scheme/base), I get an error:
exp: expects 1 argument, given 2: 2 4

How is that possible?

Many thanks,
Yaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20110308/1cf7f9fb/attachment.html>

Posted on the users mailing list.