From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Is this a bug in while-let or do I missunderstand it? Date: Sat, 9 Nov 2024 20:41:45 +0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="919"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: arthur miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 09 14:42:40 2024 Return-path: Envelope-to: ged-emacs-devel@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 1t9ljb-00006F-OB for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Nov 2024 14:42:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9liz-0004Oi-P9; Sat, 09 Nov 2024 08:42:01 -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 1t9lix-0004OT-3e for emacs-devel@gnu.org; Sat, 09 Nov 2024 08:42:00 -0500 Original-Received: from mail-vk1-xa33.google.com ([2607:f8b0:4864:20::a33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t9liv-0007s9-M2 for emacs-devel@gnu.org; Sat, 09 Nov 2024 08:41:58 -0500 Original-Received: by mail-vk1-xa33.google.com with SMTP id 71dfb90a1353d-50d58e5bfd2so997271e0c.2 for ; Sat, 09 Nov 2024 05:41:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731159716; x=1731764516; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vC/gdO0rGRE5JxS0wcji2wdw4YgZEXwrRBBDq5jhifA=; b=i2AxJpyw/QyoH/rKNMJ6mGnrNtqGsFdV1Q4PI7X5IKbXvCqeTGH5VLDqy22CvBGHQ8 rl8R9M38gUsOc6+/IZfm3OyGCvmbS5Gea2wtVen9mWhY9iPIaYp/SoCmWjFs0zj+Mxx7 6aqeuwW41OnC76CggCuLtmNtsuIYN2nmVB3A9ihA1xW3GTCRfpqjZJOBdK1zU2phgr47 FX9MqoMfv/bHOQDDXA20zp9DtHVb36kA2XObB7hm3hscsNmXZ7OrLr1gfup2kxbZxkAp sR48An4/KPQHgDI3Nd+xl3Bkgaym4QbBY6LpyOmmEomkLh/VcHRhXmkV27oqetRO9F92 JhWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731159716; x=1731764516; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vC/gdO0rGRE5JxS0wcji2wdw4YgZEXwrRBBDq5jhifA=; b=UO21izv0VyG81ATsxL9m9WYexpGTb4OW1aofEOjgtVAIh+4mdRj2WwUI+HOrPztV9I O3nUnbD9hZtaM68rJvzQ4uMlahxAPh5Ln/OOogUdLKifz/Tk22fviLWAM6pvADWQ5r11 RcZ12KHqoZELGg9DQ7Whf/nd/OSzFn2e7vqC60Xsl+9/4wpxKCtYvVTq+O8uOC//2DeI Ik9yuVhFS2lo70zewo/rT+63WykPZQIooVAklcQidjtVBhMUWhd227zPWBD9JB882G+E g8FDcy5IUawwyo81G5biJKMiuyOx0m/TKi+rJo36MrmHGl6QXVm6ocqgspy81338piWs NcIA== X-Gm-Message-State: AOJu0Yw/QDLTNCC5HSoqv0Djlw5jb94xdGlxJFGJmZ1FQaOdIOJd9h2w 4t/wWJ2svzgdCh5QwwoLueIml05ePQXxKbqXMS2bLeQ5JFvEMszisnT0955B2geiwrLECEh+j6C Zh0Vl/RQNFdS1w+5iWOnvQ1V2GS4XabB8 X-Google-Smtp-Source: AGHT+IG1wXzoPZ4PqKoWvehvd2Aanc94htWpM0KQNIABljGa8ZjYHdJN2RvFqP9djnaMrCVSenrNUdkLyctlN5nUzYk= X-Received: by 2002:a05:6102:a53:b0:4a4:849b:7616 with SMTP id ada2fe7eead31-4aae16dacd5mr6030455137.25.1731159716288; Sat, 09 Nov 2024 05:41:56 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::a33; envelope-from=yurivkhan@gmail.com; helo=mail-vk1-xa33.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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:325332 Archived-At: On Sat, 9 Nov 2024 at 20:38, arthur miller wrote: > >I expect the binding is writable *but* it gets re-assigned on each itera= tion. > > Yes. > I have already posted the macro expansions in respone to Phillip. > It is quite clear what is going on. I think it is a bug, or at > least very unintuitive behaviour. Why? Pretty much all implementations of the =E2=80=98while=E2=80=99 loop in= all languages I=E2=80=99ve seen re-evaluate the condition on every iteration.