comparison man/lispref/variables.texi @ 4039:effcad8baac1

[xemacs-hg @ 2007-06-27 12:19:08 by aidan] Mention that lexical closures are actually available in XEmacs Lisp in the Lisp reference manual.
author aidan
date Wed, 27 Jun 2007 12:19:11 +0000
parents 06a586083be3
children 57db42ba54fb
comparison
equal deleted inserted replaced
4038:fe4036b9da6a 4039:effcad8baac1
892 @error{} Symbol's value as variable is void: n 892 @error{} Symbol's value as variable is void: n
893 @end example 893 @end example
894 894
895 @cindex closures not available 895 @cindex closures not available
896 Some Lisp dialects have ``closures'', objects that are like functions 896 Some Lisp dialects have ``closures'', objects that are like functions
897 but record additional variable bindings. XEmacs Lisp does not have 897 but record additional variable bindings. Closures are available in
898 closures. 898 XEmacs Lisp using the @code{lexical-let} and @code{lexical-let*}macroes,
899 which are autoloaded from @file{cl-macs}. @xref{(cl)Lexical Bindings}.
900 Note that function arguments cannot be closed around using these
901 macros, and that any lambda expressions returned will not be
902 byte-compiled.
899 903
900 @node Impl of Scope 904 @node Impl of Scope
901 @subsection Implementation of Dynamic Scoping 905 @subsection Implementation of Dynamic Scoping
902 @cindex deep binding 906 @cindex deep binding
903 907