gcl-devel
[Top][All Lists]
Advanced

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

Re: [Gcl-devel] fixes to tailp and nconc


From: Paul F. Dietz
Subject: Re: [Gcl-devel] fixes to tailp and nconc
Date: Mon, 27 Jan 2003 20:14:36 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021126

Camm Maguire wrote:

nconc can take a dotted list.  This means GCL is in error here:

(nconc '(a . b) 'c) ==> signals an error saying 'b is not a list.--
should be '(a . c)

Also tailp must return T for nil and a proper list. GCL is doing this:

(tailp nil '(a b c)) ; ==> nil -- should be T

I can't submit a diff, since my list.d also contains other changes,
but I think this is the relevant code (attached).


The NCONC change is broken:

>(nconc (cons 'a 'b) (cons 'c 'd))

(A B C . D)   ;; <-- should not have the C

TAILP is also broken:

>(tailp nil '(a b . c))

T  ;; <-- NIL is not a tail of (a b . c)

        Paul









reply via email to

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