Top Document: FAQ: Lisp Frequently Asked Questions 2/7 [Monthly posting] Previous Document: [2-20] What is a "Lisp Machine" (LISPM)? See reader questions & answers on this topic! - Help others by sharing your knowledge FBOUNDP tests whether the symbol is globally bound to an operator (e.g., a function, macro, or special form). SYMBOL-FUNCTION returns the contents of a symbol's "function slot" if the symbol names a function. But if the symbol names a macro or special form, it is completely unspecified what a call to SYMBOL-FUNCTION will return. Instead, use code like the following to test whether a symbol names a function: (defun fbound-to-function-p (symbol) (and (fboundp symbol) (not (macro-function symbol)) (not (special-operator-p symbol)))) ---------------------------------------------------------------- ;;; *EOF* User Contributions:Top Document: FAQ: Lisp Frequently Asked Questions 2/7 [Monthly posting] Previous Document: [2-20] What is a "Lisp Machine" (LISPM)? Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Single Page [ Usenet FAQs | Web FAQs | Documents | RFC Index ] Send corrections/additions to the FAQ Maintainer: ai+lisp-faq@cs.cmu.edu
Last Update March 27 2014 @ 02:11 PM
|
Comment about this article, ask questions, or add new information about this topic: