|
From: | Arash Esbati |
Subject: | Re: Another question about lambdas |
Date: | Sat, 10 Dec 2022 22:58:01 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 |
Michael Heerdegen <michael_heerdegen@web.de> writes: > What's the result of the following expression - and why? Or maybe it is > invalid? > > #+begin_src emacs-lisp > (let* ((x 'l) > (f (lambda () x)) > (x 'd)) > (funcall f)) > #+end_src With lexical or with dynamic binding? I presume you tried it under lexical binding and didn't get `d'. This portion of the lisp reference manual might be interesting: https://www.gnu.org/software/emacs/manual/html_node/elisp/Lexical-Binding.html Best, Arash
[Prev in Thread] | Current Thread | [Next in Thread] |