🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.clos
Article #334

Re: Retrieving documentation of slots?

#334
From: Trent Lange
Date: Wed, 14 Oct 1992 14:06
28 lines
1861 bytes
In article <1bf7hrINNg9g@early-bird.think.com> barmar@think.com (Barry Margolin) writes:
>
>No, you're not overlooking anything.  As it says in the Notes section of
>the dpANS description of DOCUMENTATION:
>
>    This standard prescribes no means to retrieve the \term{documentation
>    strings} for individual slots specified in a \macref{defclass} form,
>    but \term{implementations} might still provide debugging tools and/or
>    programming language extensions which manipulate this information.
>    Implementors wishing to provide such support are encouraged to consult
>    the \term{Metaobject Protocol} for suggestions about how this might be
>    done.

Has this been changed?  On p. 840 of Steele 2nd edition, it defines
that a DOCUMENTATION method should be specialized on
"STANDARD-SLOT-DESCRIPTION", which I presume was meant to be the
equivalent of the current STANDARD-SLOT-DEFINITION.

In any case, in July 92 PCL you can get the documentation of an
effective or direct slot definition object through (PCL::DOCUMENTATION
<slot-def>).

Getting the slot definition object itself is of course a simple matter
of searching along the CLASS-SLOTS of a class for the slot definition
with appropriate SLOT-DEFINITION-NAME.  (In PCL one can use
(PCL::FIND-SLOT-DEFINITION <class> 'slot-name)).

- Trent Lange
Technical Details
Message-ID: <1992Oct14.140604.6110@cs.ucla.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!ucla-cs!lanai.cs.ucla.edu!lange
References: <1992Oct13.181308.24194@umbc3.umbc.edu> <1bf7hrINNg9g@early-bird.think.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.clos
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!ucla-cs!lanai.cs.ucla.edu!lange
From: lange@lanai.cs.ucla.edu (Trent Lange)
Subject: Re: Retrieving documentation of slots?
Message-ID: <1992Oct14.140604.6110@cs.ucla.edu>
Sender: usenet@cs.ucla.edu (Mr Usenet)
Nntp-Posting-Host: lanai.cs.ucla.edu
Organization: UCLA Artificial Intelligence Laboratory
References: <1992Oct13.181308.24194@umbc3.umbc.edu> <1bf7hrINNg9g@early-bird.think.com>
Date: Wed, 14 Oct 92 14:06:04 GMT
Lines: 29