From: "Marijn Schouten (hkBst)" <hkBst@gentoo.org>
To: stklos@email.essi.fr, bug-guile@gnu.org
Subject: (case ...)
Date: Tue, 22 May 2007 19:04:11 +0200 [thread overview]
Message-ID: <4653228B.7010101@gentoo.org> (raw)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
it seems that stklos and guile have some problems with (case ...). I concocted
the following testcase:
define (num->bool i)
(case i
('0 #f)
('1 #t)))
(define (num->bool2 i)
(case i
((0) #f)
((1) #t)))
(display (num->bool2 1))(newline)
(display (num->bool2 0))(newline)
(newline)
(display (num->bool 1))(newline)
(display (num->bool 0))(newline)
running this through my schemes produces:
gambit compiler:
compiling...
running...
#t
#f
#t
#f
mzscheme:
#t
#f
#t
#f
bigloo:
#t
#f
#t
#f
gauche:
#t
#f
#t
#f
chicken compiler:
compiling...
running...
#t
#f
#t
#f
guile:
#t
#f
ERROR: In procedure memoization:
ERROR: Duplicate case label quote in expression (case i ((quote 0) #f) ((quote
1) #t)).
stklos with full-syntax:
**** Error while evaluating "(begin (require \"full-syntax\") (load
\"casetest.scm\"))"
Where: in error
Reason: case: duplicate case value quote in ('1 '#t)
- error
- compiler-error
- for-each
- car
- for-each
- <<let/call>>
- rewrite-case-clauses
- compile-case
- compile-user-lambda
- =
- ...
Set shell variable STKLOS_FRAMES to set visible frames
EXIT
stklos:
**** Error while executing file "casetest.scm"
Where: in error
Reason: case: duplicate case value quote in ('1 #t)
- error
- compiler-error
- for-each
- car
- for-each
- <<let/call>>
- rewrite-case-clauses
- compile-case
- compile-user-lambda
- =
- ...
Set shell variable STKLOS_FRAMES to set visible frames
EXIT
elk:
#t
#f
#t
#f
Marijn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGUyKKp/VmCx0OL2wRAhS0AKCSP3e5TWjIA/27e3pOR/OANvUiQACgtgqj
4CSpORi/SJv3OL8d4KRm5k8=
=gag8
-----END PGP SIGNATURE-----
next reply other threads:[~2007-05-22 17:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-22 17:04 Marijn Schouten (hkBst) [this message]
2007-05-22 17:54 ` (case ...) Marijn Schouten (hkBst)
2007-05-23 7:44 ` Ludovic Courtès
2007-05-23 11:07 ` Marijn Schouten (hkBst)
2007-05-23 11:40 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4653228B.7010101@gentoo.org \
--to=hkbst@gentoo.org \
--cc=bug-guile@gnu.org \
--cc=stklos@email.essi.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).