Using clisp 2.44.1
Doc strings for structures are stored (i.e. accessible via inspect), but not returned by the documentation function. Doc strings are enabled, as by default, as demonstrated by retrieving the doc string of a function.
> (defstruct myStruct "Doc String" (a nil) (b nil))
> (inspect 'myStruct)
package: #<PACKAGE COMMON-LISP-USER>
0 [SYMBOL-VALUE: |#<unbound>|
(SYSTEM:DOC (TYPE "Doc String") CLOS::CLOSCLASS
> (documentation 'myStruct 'structure)
> (defun myFun (a b) "Doc String" (+ a b))
> (documentation 'myFun 'function)
Log in to post a comment.