Re: Documentation strings for class-slots



Pascal Bourguignon wrote:
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

That's incorrect. The MOP specifies that it should be possible to retrieve the :documentation option for slot definition metaobjects via documentation. See "Initialization of Slot Definition Metaobjects" in the CLOS MOP spec.


Pascal

--
3rd European Lisp Workshop
July 3 - Nantes, France - co-located with ECOOP 2006
http://lisp-ecoop06.bknr.net/
.



Relevant Pages

  • Re: Documentation strings for class-slots
    ... This standard prescribes no means to retrieve the documentation ... Even MOP doesn't specify anything to retrieve the slot ...
    (comp.lang.lisp)
  • Re: Documentation strings for class-slots
    ... strings for individual slots specified in a defclass form, ... implementations might still provide debugging tools and/or ... Even MOP doesn't specify anything to retrieve the slot documentation: ...
    (comp.lang.lisp)
  • Re: performance registry interface
    ... Shame on me for believing the documentation! ... >> retrieval buffer that ultimately lead to counters. ... >> attempts to retrieve performance blocks associated with the keys I listed. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: any hobbyist satellite digital radio tuner
    ... >> server interface over a Gbps Ethernet connection to retrieve the files. ... >Kill the professor, replace the documentation, and build a LED flasher. ...
    (sci.electronics.design)
  • How to get XML data out of an XML file
    ... <Robot xmlns="http://tempuri.org/RobotDefaults.xsd "> ... I get the dreaded "Object reference not set to an instance of an object." ... I have read the documentation all morning ... Can anybody show me how to retrieve the "x" number Parameter node from this ...
    (microsoft.public.dotnet.xml)