From: Camm Maguire
Subject: Re: sort function
Date: 
Message-ID: <54y8squkqj.fsf@intech19.enhanced.com>
Greetings!  I cannot reprodice this under current stable GCL on unix:

$ gcl
GCL (GNU Common Lisp)  (2.6.1) Wed Dec 31 15:36:01 UTC 2003
Licensed under GNU Library General Public License
Dedicated to the memory of W. Schelter

Use (help) to get some basic information on how to use GCL.

>(sort '((9 a) (3 b) (4 c)) #'(lambda (x y) (< (car x) (car y))))

((3 B) (4 C) (9 A))


Please post your version and where you got it, together with input and
output to ·········@gnu.org if problems persist.  It is possible this
message won't propagate to usenet due to my conection.  If this is the
case, kindly forward it there for me.

Take care,


On Fri, 2 Jan 2004 14:49:31 -0000, Steve Ellis wrote:
> Hi again 
> thanks for the help, i understand it all alot better now. The only thing now
> thats wrong is that the example Adam gave to sort the list works perfectly
> in lispworks on windows but when i try it in GCL under unix i get an error
> saying lambda is undefined.

[Gemini:dseaman] $ clisp -q

[1]> (sort '((9 a) (3 b) (4 c)) #'(lambda (x y) (< (car x) (car y))))
((3 B) (4 C) (9 A))
[2]>