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

:accessor-prefix and :reader-prefix same?




What happens if you do:

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

How about:

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

Is this undefined??  Signals an error??

If it does signal an error, why exactly?  Is is because you aren't
allowed to have an automatically generated accessor and an automatically
generated reader with the same name?  That would mean that this signals
an error too:

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

I guess that seems right to me.
-------