[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
:accessor-prefix and :reader-prefix same?
- To: Common-Lisp-Object-System@Sail.Stanford.edu
- Subject: :accessor-prefix and :reader-prefix same?
- From: Gregor.pa@Xerox.COM
- Date: Wed, 15 Apr 87 19:20 PDT
- Line-fold: no
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.
-------