[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Uniqueness of &rest arguments
- To: common-lisp@SU-AI.ARPA
- Subject: Uniqueness of &rest arguments
- From: OLDMAN@USC-ISI.ARPA
- Date: Mon, 28 Oct 1985 19:32:00 -0000
- Sender: OLDMAN@USC-ISI.ARPA
Are &rest arguments guaranteed to be copied? Consider the following:
(defmacro m (&rest args)
`',(nreverse args) ; Destructive reverse
)
(setq x '(m a b c d))
(eval x)
What is the final value of x? I think that I would argue that
it is undefined since args may or may not be a copy of the original
form. Is there anything in Cttl that clarifies this?
-- Dan