[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[KAHLE@Aquinas.Think.COM: defstruct request for common lisp]
- To: gls@Think.COM, firstname.lastname@example.org
- Subject: [KAHLE@Aquinas.Think.COM: defstruct request for common lisp]
- From: Daniel L. Weinreb <DLW@ALDERAAN.SCRC.Symbolics.COM>
- Date: Mon, 21 Sep 87 09:50 EDT
- In-reply-to: <8709181843.AA01280@kali.think.com>
Date: Fri, 18 Sep 87 14:43:08 EDT
Date: Sat, 12 Sep 87 17:07 EDT
From: Brewster Kahle <KAHLE@Aquinas.Think.COM>
Subject: defstruct request for common lisp
Moon: 4 days, 22 hours, 25 minutes since the full moon.
I wish there were a function like:
(struction-slots <structure-name>) that returns the list of slots of a
The obvious extension of this is to return the declarations and all, but
I have never needed any of these.
Im sure there are some hairy issues that I do not understand (like
include), but I have wanted the vanilla version many times.
One idea that's been discussed that would do what you want, in fact do
something more general, is to redefine structures in terms of
object-oriented programming, if and after CLOS is accepted as part of
Common Lisp. The basic idea is that CLOS would have a defined mechanism
for talking about slots and their properties. I don't know whether
this idea is still current; I suspect it's mainly on the back burner
while the CLOS proposal itself is being finished.