[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Documentation strings and function.
- To: James Rice <Rice@SUMEX-AIM.ARPA>
- Subject: Documentation strings and function.
- From: "Scott E. Fahlman" <Fahlman@C.CS.CMU.EDU>
- Date: Thu, 04 Sep 1986 01:09:00 -0000
- Cc: Common-Lisp@SU-AI.ARPA
- In-reply-to: Msg of 3 Sep 1986 14:56-EDT from James Rice <Rice at SUMEX-AIM.ARPA>
- Sender: FAHLMAN@C.CS.CMU.EDU
Since one is allowed to declare the following :-
(defun foo (a b)
"A docstring."
(declare (special a))
"Another docstring."
(declare (special b))
(frob a b))
What makes you think that one is allowed to declare the preceding? I
believe that this form is illegal, and that the resulting doc-string is
therefore undefined. See page 67 about a third of the way down: "It is
an error if more than one doc-string is present." Since that second
string cannot be a doc string, the second declare form is in an illegal
position.
-- Scott