更新时间:2023-11-03 10:17:28
该标准表示Common Lisp函数文档:
The standard says for the Common Lisp function documentation:
函数 如果x是函数名称,则返回名称为x的函数,宏或特殊运算符的文档字符串.
一个可以从中检索文档的三种运算符类型,参数为function
分别是:
The three operator types one can retrieve documentation from, with the argument function
are thus:
请记住,在Common Lisp中,操作员一次只能是其中之一.
Remember, in Common Lisp an operator can only be one of those at a time.
示例
CL-USER> (defmacro foomacro () "foo macro" '(foo))
FOOMACRO
CL-USER> (documentation 'foomacro 'function)
"foo macro"
宏不是编译器宏.这些是由 DEFINE-COMPILER-MACRO 定义的
Macros are not compiler macros. Those are defined by DEFINE-COMPILER-MACRO.