From ... Path: supernews.google.com!sn-xit-02!supernews.com!216.227.56.88.MISMATCH!telocity-west!TELOCITY!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!uio.no!Norway.EU.net!127.0.0.1!nobody From: Erik Naggum Newsgroups: comp.lang.lisp Subject: Re: Two Questions Date: 16 Dec 2000 15:11:01 +0000 Organization: Naggum Software; vox: +47 8800 8879; fax: +47 8800 8601; gsm: +47 93 256 360; http://naggum.no; http://naggum.net Lines: 15 Message-ID: <3185968261469225@naggum.net> References: <91fqea$rn6$1@nnrp1.deja.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: oslo-nntp.eunet.no 976979827 6313 195.0.192.66 (16 Dec 2000 15:17:07 GMT) X-Complaints-To: newsmaster@eunet.no NNTP-Posting-Date: 16 Dec 2000 15:17:07 GMT mail-copies-to: never User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 Xref: supernews.google.com comp.lang.lisp:5387 * SRS | Firstly, why is the function last not an accessor? Because (setf (last x n)) == (setf (cdr (last x (1+ n)))) in the specific case where you can modify the cdr of the cons pointing to the last cons because (last x n) is different from (last x (1+ n)). When they return the same value, you have a problem. Besides, you aren't asking for last, but rest or cdr and both of those are certainly accessors in the language. Maybe they aren't in your implementation, but if so, that's a reportable non-conformance bug. #:Erik -- The United States of America, soon a Bush league world power. Yeee-haw!