From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.help Subject: Re: Lexical vs. dynamic: small examples? Date: Sat, 14 Aug 2021 01:12:14 -0300 Message-ID: References: <87h7fs4r3a.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11919"; mail-complaints-to="usenet@ciao.gmane.io" To: Emanuel Berg , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 14 06:12:51 2021 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 1mEl2Q-0002nB-Cv for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 14 Aug 2021 06:12:50 +0200 Original-Received: from localhost ([::1]:42096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEl2P-0006Ut-0R for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 14 Aug 2021 00:12:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEl24-0006UV-T1 for help-gnu-emacs@gnu.org; Sat, 14 Aug 2021 00:12:28 -0400 Original-Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]:55828) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mEl23-0000ew-I8 for help-gnu-emacs@gnu.org; Sat, 14 Aug 2021 00:12:28 -0400 Original-Received: by mail-pj1-x1029.google.com with SMTP id w14so18214490pjh.5 for ; Fri, 13 Aug 2021 21:12:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=LIQzJ7j0xLIVpbvgSCy2XL/x1YbgenRFDajbvp7g4+A=; b=CqF9t4UH7SjiKTrGHBrooKjnk9yEX6RCCWitN6hEsq7a3FUoJwawH+FnwmNSYHSJJc XzHnsMPYQOgCKymzS6ycN7/JsCL0Ff+/s9wMgb2GgfxcDRWJCJP8D7tkDW4duo0QR4Kb P9534a4/gDcuVyst3eWMWTJhH6UMRW42OeH3QpNWKjOHm/V2v19ytfaKnwhQRHv6I+07 cc5OPQAolut8HiCYUCgD57bx567Ss3C95QJyq/7Wu/hOzQih0jrh+zD6894FV/jTNU4K mZymSU3I8G3vcUkaXHaglQ4RSF6oIH8HGlRNkbDrKaoidIR8I1BWY2WVhAk1wPHQGwjk gnTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=LIQzJ7j0xLIVpbvgSCy2XL/x1YbgenRFDajbvp7g4+A=; b=XvkL449cM6GR4CEnfLTdDTWX2r7FOhb5tYkuwGwz49/kaH32YR1QY8OcJhHJC8ndHD KEavSMpPoDyWGzu4EVVmRQSq50R/xqdAIQk5XO5/FELFuLHsfBzqKIu+XMt1V2ZpiQQy 0fW+OgAGqJLoDkOU5uSBFaCT8FqM6xwSufBfHJ0q7AR+vU8pWYu/wWJwEhLUq1I4YxeF /q/yT4LgHdi4qSndiH/dWQLjc0n3Qejx6fZHwgFx7YbwkFQw3uuFUCJ9b7HOZR6sh370 mXI5bLnmrK+xOaTnh63vKiSupLdfvdUjXg9JMgdGeQiQSz0CiLzYhEz8FOglQr6U9WB0 N1yQ== X-Gm-Message-State: AOAM531revaq4NzJ3h1237idn4dIsuo71P8WRCw68uaaSgpD1XmAdOGA RhUvu697ju/E8SDGlWcrmfBCyXeRnE86n7QDeDEjMN6crWhNWw== X-Google-Smtp-Source: ABdhPJwQVSDgMh+QTlEn+F4m7vhQ7LgbA3VvuTLRn2zmjwFE9vv7/o5LJjUPU4VW4rI3WGCFjaiL0Htcr5NE7RgjaFA= X-Received: by 2002:a17:90b:1989:: with SMTP id mv9mr5605346pjb.100.1628914345830; Fri, 13 Aug 2021 21:12:25 -0700 (PDT) In-Reply-To: <87h7fs4r3a.fsf@zoho.eu> Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=eduardoochs@gmail.com; helo=mail-pj1-x1029.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.help:132529 Archived-At: On Sat, 14 Aug 2021 at 00:56, Emanuel Berg via Users list for the GNU Emacs text editor wrote: > > Have a look: > > (let ((a 1)) > (do-something a) ; 1 is here > (do-something-else) ) ; but if a is referenced here, it isn't 1 > ; not the same a! Hi Emanuel, Thanks! I converted your idea to this... (setq a 42) (defun *a10 () (* a 10)) (let ((a 99)) (list (* a 10) (*a10)) ) (let ((b 99)) (list (* b 10) (*a10)) ) Cheers =), Eduardo Ochs