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

Re: :accessor-prefix and :reader-prefix same?



My 'interesting example' was a typo, I meant:

    (defclass foo ()
	((x :accessor foo-x))
      (:reader-prefix foo-))

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.