[plt-scheme] strange bug in EOPL (v4.0.x)

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sun Jul 6 08:03:31 EDT 2008

At Sun, 6 Jul 2008 04:33:54 -0400, Eli Barzilay wrote:
> On Jul  6, Eric Tanter wrote:
> > Hi,
> > 
> > The following program:
> > [...]
> > Any idea what's going on?
> 
> Looks like a bug with `begin' -- this:
> 
>   (define (z)
>     (begin (display "foo\n")))
>   (z)
> 
> prints "foo" twice.  Also, it looks like this is fixed in subversion.

More specifically, it's a bug with `begin' in internal-definition
positions. The EoPL implementation inherits the bug from the R5RS
implementation in 4.0.

I should have thought to have the repair included in 4.0.2, but I
forgot about it.

Matthew



Posted on the users mailing list.