[plt-scheme] mzscheme and R6RS error

From: Andreas Rottmann (a.rottmann at gmx.at)
Date: Sun Dec 21 09:11:00 EST 2008

Hi!

I'm playing with mzscheme's R6RS support, and found two issues with this
simple test program:

---------mz-test.scm-----------
#!r6rs

(import (rnrs))

(define (foo x y)
  (when (> x y)
    (error 'foo "x must be <= y" x y))
  (- y x))

(display (foo 1 2)) (newline)
(display (foo 3 2)) (newline)
--------mz-test.scm------------

Running "mzscheme mz-test.scm", I get the following:

       1
       foo: x must be <= y

        === context ===
       /usr/local/stow/plt/lib/plt/collects/rnrs/base-6.ss:407:0: r6rs:error

Note that the message is less useful than it could be, because the
irritants (i.e. the values of x and y) are not included.

However, trying to get an error trace using "mzscheme -l errortrace
mz-test.scm", I get no output at all.

This is all using a build from current SVN, running on Debian GNU/Linux
sid, on amd64 (x86-64).

Regards, Rotty
-- 
Andreas Rottmann         | Rotty at ICQ      | 118634484 at ICQ | a.rottmann at gmx.at
http://rotty.uttx.net    | GnuPG Key: http://rotty.uttx.net/gpg.asc
Fingerprint              | C38A 39C5 16D7 B69F 33A3  6993 22C8 27F7 35A9 92E7
v2sw7MYChw5pr5OFma7u7Lw2m5g/l7Di6e6t5BSb7en6g3/5HZa2Xs6MSr1/2p7 hackerkey.com

To iterate is human; to recurse, divine.


Posted on the users mailing list.