[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- To: (BUG LISP) at MIT-AI
- Subject:
- From: CWH@MIT-AI (Sent by GJS@MIT-AI)
- Date: Wed, 9 Feb 78 21:04:52 GMT
- Cc: CWH at MIT-MC
- Getting:
- Original-date: 09/02/78 17:04:52 EDT
(LAST '(A B . C)) --> C
which is essentially useless. I think it should return the last cons in the
structure.
(LAST 'A) --> A
(LAST 3) --> ***MISSING-ARG*** (meaningless error message)
(LAST 3.3) --> breaks lisp
(LAST <bignum>) --> <list of fixnums>
I think the right thing to do is to have the last four cases be errors and
to print the fact that LAST was called with a ridiculous argument and print
the argument.