emacs-devel
[Top][All Lists]
Advanced

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

Re: quote and UNEVALLED?


From: Andreas Schwab
Subject: Re: quote and UNEVALLED?
Date: 14 Nov 2001 21:26:01 +0100
User-agent: Gnus/5.090003 (Oort Gnus v0.03) Emacs/21.1

address@hidden (Pavel Janík) writes:

|> Hi,
|> 
|> quote is defined as:
|> 
|> DEFUN ("quote", Fquote, Squote, 1, UNEVALLED, 0,
|> 
|> I know that it is crazy to use something like (quote first second), but it
|> IS possible now. The doc-string says:
|> 
|> quote is a special form.
|> (quote ARG)
|> 
|> Return the argument, without evaluating it.  `(quote x)' yields `x'.
                        ^^^^^^^^^^^^^^^^^^

|> Shouldn't we fix the DEUN?

There is no other way to describe unevalled args.  quote and function are
the only special forms that have a fixed argument list (not counting
interactive, which is even more special).  If necessary an explicit check
must be added to the body.  But IMHO it is not worth doing, since they are
supposed to be use via the ' and #' read macros which don't allow more
than one argument anyway.

Andreas.

-- 
Andreas Schwab                                  "And now for something
address@hidden                          completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5



reply via email to

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