[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sorting lists of lists
From: |
Christoph Groth |
Subject: |
sorting lists of lists |
Date: |
Thu, 19 Sep 2002 10:33:06 +0200 |
User-agent: |
Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386-debian-linux-gnu) |
Hello,
I think I've found a bug in Guile 1.6.0: When sorting lists of lists
with `sort!' some list items are lost. This is how I can reproduce
the problem:
~$ guile
guile> (define l '((4) (2) (5) (1)))
guile> (sort! l (lambda (a b) (< (car a) (car b))))
((1) (2) (4) (5))
guile> l
((2) (4) (5))
Some information about my system:
I've compiled guile without any special options to `configure'. The
only deviation from a standard installation procedure is that I've
used `stow'.
guile> ~$ uname -a
Linux piglet 2.4.18 #1 Thu Jun 13 00:41:40 CEST 2002 i686 unknown
~$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 (Debian prerelease)
~$ guile -v
Guile 1.6.0
Copyright (c) 1995, 1996, 1997, 2000, 2001, 2002 Free Software Foundation
Guile may be distributed under the terms of the GNU General Public Licence;
certain other uses are permitted as well. For details, see the file
`COPYING', which is included in the Guile distribution.
There is no warranty, to the extent permitted by law.
~$ guile-config info
buildstamp = Thu Sep 12 13:52:00 CEST 2002
LIBS = -lcrypt -lm
libguileinterface = 15:0:3
guileversion = 1.6.0
pkgincludedir = /usr/local/include/guile
pkglibdir = /usr/local/lib/guile
pkgdatadir = /usr/local/share/guile
includedir = /usr/local/include
mandir = /usr/local/man
infodir = /usr/local/info
libdir = /usr/local/lib
localstatedir = /usr/local/var
sharedstatedir = /usr/local/com
sysconfdir = /usr/local/etc
datadir = /usr/local/share
libexecdir = /usr/local/libexec
sbindir = /usr/local/sbin
bindir = /usr/local/bin
exec_prefix = /usr/local
prefix = /usr/local
top_srcdir = top_srcdir_absolute@
srcdir = /usr/local/src/guile-1.6.0/libguile
regards,
Christoph
pgpGk7j3PyIDk.pgp
Description: PGP signature
- sorting lists of lists,
Christoph Groth <=