[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
defstruct syntax
- To: Bobrow.pa@XEROX.ARPA, common-lisp@SU-AI.ARPA
- Subject: defstruct syntax
- From: Guy Steele <gls@THINK-AQUINAS.ARPA>
- Date: Tue, 6 Aug 85 17:20 EDT
- Cc: gls@THINK-AQUINAS.ARPA
- In-reply-to: <850806-135354-1018@Xerox>
Date: 6 Aug 85 13:50 PDT
From: Bobrow.pa@Xerox.ARPA
On page 307 defstruct syntax is defined as
defstruct name-and-options [doc-string] {slot-description}+
we believe it should be
defstruct name-and-options [doc-string] {slot-description}*
since it is perfectly reasonable to have
(defstruct (foo (:include bar (x 33))))
to make foo be like bar but have a different initial value for x.
ken kahn & danny bobrow
I agree. I should have known. "+" is almost never the right thing
compared with "*".
--Guy