[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] Problems with TYPEP

From: Paul F. Dietz
Subject: [Gcl-devel] Problems with TYPEP
Date: Thu, 11 Aug 2005 18:30:44 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050716

Looking over gcl_predlib.lsp, I see some problems with TYPEP:

>(typep nil nil)


(Remember, NIL is the empty type; NULL is the type containing NIL.)

Also, typep-int contains this code fragment:

(case tp
    (cons (and (consp object) (typep-int (car object) (car i)) (typep-int (cdr 
object) (cadr i))))

which, on the type (CONS T), will be calling itself
recurively on (cdr object) and nil.  That type is equivalent
to (CONS T T).

I'll commit a patch for this in a bit.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]