[movitz-cvs] CVS update: movitz/losp/muerte/equalp.lisp

Frode Vatvedt Fjeld ffjeld at common-lisp.net
Tue Jun 8 22:02:52 UTC 2004


Update of /project/movitz/cvsroot/movitz/losp/muerte
In directory common-lisp.net:/tmp/cvs-serv3192

Modified Files:
	equalp.lisp 
Log Message:
Slightly improved eql.

Date: Tue Jun  8 15:02:52 2004
Author: ffjeld

Index: movitz/losp/muerte/equalp.lisp
diff -u movitz/losp/muerte/equalp.lisp:1.3 movitz/losp/muerte/equalp.lisp:1.4
--- movitz/losp/muerte/equalp.lisp:1.3	Mon Mar 29 06:56:26 2004
+++ movitz/losp/muerte/equalp.lisp	Tue Jun  8 15:02:52 2004
@@ -10,7 +10,7 @@
 ;;;; Author:        Frode Vatvedt Fjeld <frodef at acm.org>
 ;;;; Created at:    Tue Mar 13 17:09:08 2001
 ;;;;                
-;;;; $Id: equalp.lisp,v 1.3 2004/03/29 14:56:26 ffjeld Exp $
+;;;; $Id: equalp.lisp,v 1.4 2004/06/08 22:02:52 ffjeld Exp $
 ;;;;                
 ;;;;------------------------------------------------------------------
 
@@ -22,7 +22,9 @@
 (in-package muerte)
 
 (defun eql (x y)
-  (eql x y))
+  (if (typep x 'bignum)
+      (and (typep y 'bignum) (= x y))
+    (eq x y)))
 
 (defun equal (x y)
   (typecase x





More information about the Movitz-cvs mailing list