Re: Documentation strings for class-slots
- From: Pascal Bourguignon <pjb@xxxxxxxxxxxxxxxxx>
- Date: Sun, 18 Jun 2006 17:15:07 +0200
ocorrain@xxxxxxxxx (Tiarnán Ó Corráin) writes:
is there any (quasi-portable) way to extract doc-strings for
individual class slots? The hyperspec is terse:
This standard prescribes no means to retrieve the documentation
strings for individual slots specified in a defclass form, but
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 Metaobject Protocol for suggestions about
how this might be done.
Has any consensus been reached?
Even MOP doesn't specify anything to retrieve the slot documentation:
http://www.lisp.org/mop/dictionary.html#slotd-mo-readers
So, the portable thing to do, is either to fetch the sources, or to
shadow defclass to add the functionality you need; something like in:
http://www.informatimago.com/develop/lisp/small-cl-pgms/ibcl.lisp
--
__Pascal Bourguignon__ http://www.informatimago.com/
PLEASE NOTE: Some quantum physics theories suggest that when the
consumer is not directly observing this product, it may cease to
exist or will exist only in a vague and undetermined state.
.
- Follow-Ups:
- Re: Documentation strings for class-slots
- From: Pascal Costanza
- Re: Documentation strings for class-slots
- References:
- Documentation strings for class-slots
- From: Tiarnán Ó Corráin
- Documentation strings for class-slots
- Prev by Date: Re: Simple CLOS-Example needed
- Next by Date: Re: a [hopefully] easy question
- Previous by thread: Documentation strings for class-slots
- Next by thread: Re: Documentation strings for class-slots
- Index(es):
Relevant Pages
|