From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: dick.r.chiang@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#29799: 24.5; cl-loop guard clause missing Date: Fri, 22 Nov 2019 08:51:23 -0500 Message-ID: <87mucorpd0.fsf@dick> References: <87d138beur.fsf@gmail.com> <87pnhkke27.fsf@dick> <87h82wrry9.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="39461"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 29799@debbugs.gnu.org, Tino Calancha , npostavs@gmail.com, monnier@iro.umontreal.ca To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 22 14:52:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iY9M8-000A6I-AU for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Nov 2019 14:52:16 +0100 Original-Received: from localhost ([::1]:51120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iY9M6-0004Mo-U6 for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Nov 2019 08:52:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57454) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iY9Lw-0004Hu-AU for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2019 08:52:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iY9Lu-0000zv-JN for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2019 08:52:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45164) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iY9Lu-0000zm-Du for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2019 08:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iY9Lu-0008AZ-9f for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2019 08:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: dick.r.chiang@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Nov 2019 13:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29799 X-GNU-PR-Package: emacs Original-Received: via spool by 29799-submit@debbugs.gnu.org id=B29799.157443069331369 (code B ref 29799); Fri, 22 Nov 2019 13:52:02 +0000 Original-Received: (at 29799) by debbugs.gnu.org; 22 Nov 2019 13:51:33 +0000 Original-Received: from localhost ([127.0.0.1]:53985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iY9LQ-00089t-T2 for submit@debbugs.gnu.org; Fri, 22 Nov 2019 08:51:33 -0500 Original-Received: from mail-qt1-f177.google.com ([209.85.160.177]:43108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iY9LO-00089f-Iw for 29799@debbugs.gnu.org; Fri, 22 Nov 2019 08:51:31 -0500 Original-Received: by mail-qt1-f177.google.com with SMTP id q8so5213425qtr.10 for <29799@debbugs.gnu.org>; Fri, 22 Nov 2019 05:51:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=wCE7SHcnu/sf+Qx1sMegNX3fZiefCDJjll910JMBrIQ=; b=SJRVVuA8LviyrFzsWum6LMgXj+pnwpLcUkM31pjHwaYAWHyjx49vm9gj4QZxOL+BgW B+GlSv/DJ+d/eqkfzonIW3eKvbUN0r0tJ1s09aIC1uucU6a7FDINg/QKFfnSXrpcnK6v PZLTJ72PDPJnmnKUOKVDfVBSQ0EgnuXqjZZaNnFEogupiTPwXblP8L3DjdkcskNBC90V 28uJRLcHhAVeysVwi4uX2qroa+fLYykN2E7htxmVi7S8zSsQKvplX1DJ41RVZlinJfkl BlZxdX0Nch3cRheBUc4ewCdoaxyr1E1TRPo0Oq9eApMdQMswDGpQnePFV/q68XXHhqBm nzwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=wCE7SHcnu/sf+Qx1sMegNX3fZiefCDJjll910JMBrIQ=; b=duVyb12ylkj7wuv/pNPwiLMcRQ9Y/A8zAufL1uJ25YA3t5AfgT+5hGLDgtWlfYnNHI iZlqMASWAjwijdSJXWbVVBPYCEKxQzkBCbbWn0FF4+M0/eiKveVbdaq3U5FjlhptsVad cmdqHNXMp7Z//U5JaOPrcSTZpXxzqo5zZCJUt4ymiK9aHsFwD/BHqOa+A4Z8rcij2PtF qHHARWLusPzZUaGF9uFJvO9/YbTSlIIlRq3uKvv+8CACxn5oR3qFKv3GmnxqSczjROKP VMFKXpOejhLBSZH4GAiHjPXrEOLNBK9B8vpqQ8kjo+tDTS9I7u8GUTtpHwfBPh0HSOFv aiew== X-Gm-Message-State: APjAAAXspW/vrEQKekidhbMpapJbCp56EKqLhnzinoxzw8S6RBxqnDjH MBY2MqetRq/jrxhubrPVtA0= X-Google-Smtp-Source: APXvYqwhQzFb+0gymBnTzzKo0ysRKkaPU+CyS+UloCMeJkcHvct40xvaSQoJoSGsqcEnZ6RKVYCRsQ== X-Received: by 2002:ac8:2a70:: with SMTP id l45mr14796114qtl.230.1574430685012; Fri, 22 Nov 2019 05:51:25 -0800 (PST) Original-Received: from localhost (pool-100-33-98-8.nycmny.fios.verizon.net. [100.33.98.8]) by smtp.gmail.com with ESMTPSA id f22sm1954194qtc.43.2019.11.22.05.51.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Nov 2019 05:51:24 -0800 (PST) In-Reply-To: <87h82wrry9.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 22 Nov 2019 13:55:26 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172238 Archived-At: >>>>> Lars Ingebrigtsen writes: >> ;; should return (1 0) (cl-loop with result for x below 3 for y below 2 and >> z = (progn (push x result) nil) finally return result) > I applied the patch and ran that test case, and it returned > (2 1 0). But shouldn't it return (2 1)? Ah, clisp also returns (2 1 0), so while my initial claim is wrong, I am happy the patch conforms with clisp. My human instinct is to say it should return (1 0), but the simultaneity semantics of "and" are tricky. Under no interpretation, do I see it returning (2 1). iter#1 x is 0, *simultaneously* set y = 0 and result = (0) iter#2 x is 1, *simultaneously* set y = 1 and result = (1 0) iter#3 x is 2, *simultaneously* break out of loop and result = (2 1 0)