[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Issue: STRUCTURE-INFO (Version 1)
- To: Kent M Pitman <KMP@STONY-BROOK.SCRC.Symbolics.COM>
- Subject: Re: Issue: STRUCTURE-INFO (Version 1)
- From: masinter.pa@Xerox.COM
- Date: 6 Oct 88 16:19 PDT
- Cc: CL-Cleanup@SAIL.STANFORD.EDU, DICK@WHEATIES.AI.MIT.EDU
- In-reply-to: Kent M Pitman <KMP@STONY-BROOK.SCRC.Symbolics.COM>'s message of Fri, 24 Jun 88 13:59 EDT
Is this proposal still necessary?
Date: Tue, 20 Sep 88 19:46 PDT
From: Gregor.pa
Subject: Re: [Kent M Pitman <KMP@STONY-BROOK.SCRC.Symbolics.COM>: Issue:
STRUCTURE-INFO (Version 1)]
To: masinter.pa
Fcc: BD:>Gregor>mail>outgoing-mail-4.text.newest
In-Reply-To: The message of 20 Sep 88 17:42 PDT from masinter.pa
Message-ID: <19880921024606.6.GREGOR@PORTNOY.parc.xerox.com>
Line-fold: no
I don't have time to write this up. But here is some code:
(defun structurep (x)
(typep (class-of x) 'structure-class))
(defun structure-contents (x)
(mapcar #'(lambda (slot-description)
(let ((name (slot-description-name slot-description)))
(list name (slot-value x name))))
(class-slots (class-of x))))
-------