Post by Pascal CostanzaPost by Pascal CostanzaAnother issue that I'm currently fighting with is initialization of class
slots for classes for which I never create any instances: > > (defclass test
() > ((slot :initform 42 :allocation :class))) > > (slot-value (class-prototype
(find-class 'test)) 'slot) will report an unbound slot. This is probably
defensible based on the HyperSpec and the CLOS MOP specification, but I doubt
its useful. I believe that class slots should be initialized in finalize-inheritance
the latest, and not only in shared-initialize on instances, to be useful
for such scenarios. (But it's fine if you disagree, then I have to live with
that and find a different solution…) [...]
Content analysis details: (-100.7 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-100 USER_IN_WHITELIST From: address is in the user's white-list
-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low
trust
[88.151.129.22 listed in list.dnswl.org]
X-BeenThere: armedbear-devel-***@public.gmane.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <armedbear-devel.common-lisp.net>
List-Unsubscribe: <http://lists.common-lisp.net/cgi-bin/mailman/options/armedbear-devel>,
<mailto:armedbear-devel-request-***@public.gmane.org?subject=unsubscribe>
List-Archive: <http://lists.common-lisp.net/pipermail/armedbear-devel>
List-Post: <mailto:armedbear-devel-***@public.gmane.org>
List-Help: <mailto:armedbear-devel-request-***@public.gmane.org?subject=help>
List-Subscribe: <http://lists.common-lisp.net/cgi-bin/mailman/listinfo/armedbear-devel>,
<mailto:armedbear-devel-request-***@public.gmane.org?subject=subscribe>
Errors-To: armedbear-devel-bounces-***@public.gmane.org
X-Spam-Score: -100.7 (---------------------------------------------------)
X-Spam-Report: Spam detection software, running on the system "tiger.common-lisp.net", has
identified this incoming email as possible spam. The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email. If you have any questions, see
the administrator of that system for details.
Post by Pascal CostanzaPost by Pascal CostanzaAnother issue that I'm currently fighting with is initialization of class
slots for classes for which I never create any instances: > > (defclass test
() > ((slot :initform 42 :allocation :class))) > > (slot-value (class-prototype
(find-class 'test)) 'slot) will report an unbound slot. This is probably
defensible based on the HyperSpec and the CLOS MOP specification, but I doubt
its useful. I believe that class slots should be initialized in finalize-inheritance
the latest, and not only in shared-initialize on instances, to be useful
for such scenarios. (But it's fine if you disagree, then I have to live with
that and find a different solution…) [...]
Content analysis details: (-100.7 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low
trust
[88.151.129.22 listed in list.dnswl.org]
-100 USER_IN_WHITELIST From: address is in the user's white-list
Archived-At: <http://permalink.gmane.org/gmane.lisp.closer.devel/350>
Post by Pascal Costanza(defclass test ()
((slot :initform 42 :allocation :class)))
(slot-value (class-prototype (find-class 'test)) 'slot) will report an unbound slot. This is probably defensible based on the HyperSpec and the CLOS MOP specification, but I doubt its useful. I believe that class slots should be initialized in finalize-inheritance the latest, and not only in shared-initialize on instances, to be useful for such scenarios. (But it's fine if you disagree, then I have to live with that and find a different solution…)
I'm a bit slow with the fixes these days, but this should now be implemented in r14153.
Note that the related form
(defclass test ()
((slot :initarg :slot :allocation :class))
(:default-initargs :slot 42))
currently still has the old behavior (unbound slot until the first instance is created). Do you think this should be fixed as well?
Rudi