From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#29866: 27.0.50; cl-loop: Calculate the array length just once Date: Wed, 27 Dec 2017 17:27:05 -0800 (PST) Message-ID: References: <87wp18179m.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1514424379 8122 195.159.176.226 (28 Dec 2017 01:26:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 28 Dec 2017 01:26:19 +0000 (UTC) Cc: 29866@debbugs.gnu.org To: Tino Calancha , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 28 02:26:15 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUMxY-0001iq-R5 for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Dec 2017 02:26:12 +0100 Original-Received: from localhost ([::1]:56418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUMzX-0004uP-FG for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Dec 2017 20:28:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUMzO-0004si-7R for bug-gnu-emacs@gnu.org; Wed, 27 Dec 2017 20:28:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUMzL-0007oz-Go for bug-gnu-emacs@gnu.org; Wed, 27 Dec 2017 20:28:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45659) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eUMzL-0007oX-9j for bug-gnu-emacs@gnu.org; Wed, 27 Dec 2017 20:28:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eUMzK-0008C8-2b for bug-gnu-emacs@gnu.org; Wed, 27 Dec 2017 20:28:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Dec 2017 01:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29866 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 29866-submit@debbugs.gnu.org id=B29866.151442443631445 (code B ref 29866); Thu, 28 Dec 2017 01:28:02 +0000 Original-Received: (at 29866) by debbugs.gnu.org; 28 Dec 2017 01:27:16 +0000 Original-Received: from localhost ([127.0.0.1]:54340 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUMya-0008B6-CX for submit@debbugs.gnu.org; Wed, 27 Dec 2017 20:27:16 -0500 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:54786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUMyY-0008Ar-IE for 29866@debbugs.gnu.org; Wed, 27 Dec 2017 20:27:14 -0500 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.21/8.16.0.21) with SMTP id vBS1R8UP154261; Thu, 28 Dec 2017 01:27:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=MnsO1eXaKQ2hOlHmqs51fBZq2NoZUBKLLZwx2CPvK8g=; b=NSXmV/ZwhQwiG8ohqoiyx+HVvEdxXG22tRuEUfsJ3qUKJFUktJWHQvVoghwKnpGdpE47 mVXl0oEkMD9gBoo7wGMqcn/ZBD2xOVOq04POoMDmYpDxc2nGDQyjwCqBWJhwnrIxIgCG if/44+zisfX7xvOKHlb6VhDESU8+MVjocy/rEF/YDwrsJtxqFy6Nl/KCTvaOV8aFvAYg iaPxDZf4iKFN4tkaAIeLU/2ALKWPE97NlOfReC4wUZK8YoGKVvlI4GGjTrxztVAG/sjI rP3DMCV3s0jUlgV6tVhG2ylzkgC80QNkXbuyIudgvvuUYUSpTV4Ln6nwsPqqFCjH771P uQ== Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2130.oracle.com with ESMTP id 2f4ghe0g4w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 28 Dec 2017 01:27:08 +0000 Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vBS1R73G028058 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 28 Dec 2017 01:27:07 GMT Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vBS1R5uQ016514; Thu, 28 Dec 2017 01:27:05 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4627.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8757 signatures=668650 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=610 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1712280019 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: 208.118.235.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:141556 Archived-At: > While studying this code I found easier to hack if we use gensym's > instead of make-symbol; otherwise, the code creates several symbols with > the same printed representation "--cl-var--". For example, with > current code you can read expansions with something like: >=20 > (let* ((--cl-var-- 'foo) > (--cl-var-- 'bar)) That's the same variable, `--cl-var--', bound first to `foo' and then to `bar'. > I prefer to read: >=20 > (let* ((--cl-var--1 'foo) > (--cl-var--2 'bar)) That's two different variables. > Do you have any preference in these cases? As presented here, they are not equivalent. Check the actual code to see if the second can, in fact, be used in place of the first.