This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Bug in scm_map
- To: Guile Mailing List <guile at sourceware dot cygnus dot com>
- Subject: Bug in scm_map
- From: Dirk Herrmann <dirk at ida dot ing dot tu-bs dot de>
- Date: Wed, 17 May 2000 09:51:07 +0200 (MEST)
Hi!
Try the following:
(define (foo . args) args)
(define l (iota 10))
(map foo '() l)
The result is '(), althouth an error should be reported, as R5RS states:
If more than one list is given, then they must all be the same length.
The fix is easy: The very first thing in scm_map is to check, whether the
first list is empty. If so, an empty list is returned. I will remove
that special case.
Dirk