Top Document: FAQ: Lisp Frequently Asked Questions 2/7 [Monthly posting]
Previous Document: [2-4] Is Lisp inherently slower than more conventional languages such as C?
Next Document: [2-6] How do I call non-Lisp functions from Lisp?
See reader questions & answers on this topic! - Help others by sharing your knowledge
#' is a macro-character which expands #'FOO to (FUNCTION FOO). Symbols in Lisp have two bindings, one for values and one for functions, allowing them to represent both variables and functions, depending on context. #'FOO accesses FOO's lexical function binding in a context where the value interpretation would normally occur. #' is also used to create lexical closures for lambda expressions. A lexical closure is a function which when invoked executes the body of the lambda-expression in the lexical environment within which the closure was created. See pp. 115-117 of CLtL2 for more details.
User Contributions:
Comment about this article, ask questions, or add new information about this topic:
Top Document: FAQ: Lisp Frequently Asked Questions 2/7 [Monthly posting]
Previous Document: [2-4] Is Lisp inherently slower than more conventional languages such as C?
Next Document: [2-6] How do I call non-Lisp functions from Lisp?
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