[Top][All Lists]

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

(last '(a . b)) fails

From: Hannu Koivisto
Subject: (last '(a . b)) fails
Date: 11 Jan 2001 18:14:30 +0200
User-agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/20.7


With Emacs 20.7 from Debian GNU/Linux potato x86, trying to
evaluate (last '(a . b)) results to "Wrong type argument: listp, b"
error.  It seems that at least in Emacs 19.34 last was in CL
package whereas now it has been removed from there and
reimplemented in subr.el.  The version in 19.34's CL package works
as I would expect, i.e. it returns '(a . b).  I don't know if it is
a feature that the implementation in subr.el works in a different
way.  If it is, a) its documentation is broken (as far as I can see
the last element of the list '(a . b) is '(a . b)), b) it broke, at
least, destructuring-bind in CL package so a CL-compliant last
should have been retained for CL package under name last* and code
like destructuring-bind should have been modified to use it and c)
this new feature sucks.  If it's not, well, Houston, we've got a


reply via email to

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