[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: :accessor-prefix and :reader-prefix same?
- To: Moon@STONY-BROOK.SCRC.Symbolics.COM
- Subject: Re: :accessor-prefix and :reader-prefix same?
- From: Gregor.pa@Xerox.COM
- Date: 15 Apr 87 20:34 PDT
- Cc: Common-Lisp-Object-System@Sail.Stanford.edu
- In-reply-to: David A. Moon <Moon@STONY-BROOK.SCRC.Symbolics.COM>'s message of Wed, 15 Apr 87 23:03 EDT
My 'interesting example' was a typo, I meant:
(defclass foo ()
((x :accessor foo-x))
But you probably figured that out. But I think we agree that this "is
wrong" (signals an error).
Correcting your use of function where I think it should say method, I
like your description of why it signals an error, namely "a single
defclass form isn't allowed to define two functions with the same name
if they do different things". We should use that in the documentation.
Of course the string "functions with the same name" needs to be replaced
with "methods with the same qualifiers on the same generic function" or
something like it.