[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SETF of an &REST list.
- To: RPG@SU-AI.ARPA
- Subject: SETF of an &REST list.
- From: "George J. Carrette" <GJC@MC.LCS.MIT.EDU>
- Date: Fri, 10 Jan 86 14:01:04 EST
- Cc: common-lisp@SU-AI.ARPA
- In-reply-to: Msg of 10 Jan 86 0941 PST from Dick Gabriel <RPG at SU-AI.ARPA>
What you have to say is that SETF on the &REST list is not portable.
(defun foo (&rest l) (setf (car l) 'foo))
(defun test ()
(let ((x (list nil)))
(apply 'foo x)
In NIL (or Maclisp for that matter): (test) ==> NIL
In zetalisp its always been that: (test) ==> FOO.
This is also the kind of behavior that may be different depending
on if a function is interpreted or compiled or traced etc.