From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.help Subject: Re: Another question about lambdas Date: Sat, 10 Dec 2022 22:58:01 +0100 Message-ID: <861qp67wgm.fsf@gnu.org> References: <87tu23kw9x.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24251"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 Cc: Emacs mailing list To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 10 22:58:53 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p47rw-00064V-5k for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 10 Dec 2022 22:58:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p47rP-0001RQ-Fh; Sat, 10 Dec 2022 16:58:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p47rO-0001RH-Gi for help-gnu-emacs@gnu.org; Sat, 10 Dec 2022 16:58:18 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p47rN-00019k-VQ; Sat, 10 Dec 2022 16:58:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=fNI5pmSErrQ0qCVJfUd6rovwPWtXrseoBD84y0Ix3gc=; b=C2bd43aPpFPEQ+vjeTuo C45FQvTIuJBTmHSe9hzbZjVsu3svlw75in85qRDJ12/aS+Ze2JPADqkx8wx13RxBG3MJER1D615lY AG4uQPPKPAAz1vpUxWxyN/6dSfegteAevsUs/HvTHVpY8zDQR+85nWa1gS32QHB6RZgQW2Y0fhHfQ UUr/L1kCkAC/ODLP7W++6Ph7Xm+QaX79hXRBPxT+BUgOPVn7wDmU4ji/++VUNnp3xOoRWGVzz3RJ5 qxssqHxgJJdDATcEqbUvMbMeont81Rh7sBEXCUF6wDCg/x2Aq/BmmyvmvbDBdTuJ6kqHNQRo/Xnlc fyhvahSs5JFqng==; Original-Received: from p5b3263c3.dip0.t-ipconnect.de ([91.50.99.195] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p47rN-0002OU-IG; Sat, 10 Dec 2022 16:58:17 -0500 In-Reply-To: <87tu23kw9x.fsf@web.de> (Michael Heerdegen's message of "Sat, 10 Dec 2022 18:23:38 +0100") X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141609 Archived-At: Michael Heerdegen 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