From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.bugs Subject: bug#31688: 26.1.50; Byte compiler confuses two string variables Date: Sun, 03 Jun 2018 11:38:44 +1200 Message-ID: <5c6b2383ccd9c7d9b4058d249274b8c4@webmail.orcon.net.nz> References: <87a7sdkrft.fsf@runbox.com> <87po199id0.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1527982628 10040 195.159.176.226 (2 Jun 2018 23:37:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 2 Jun 2018 23:37:08 +0000 (UTC) User-Agent: Orcon Webmail Cc: Gemini Lasswell , bug-gnu-emacs , 31688@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 03 01:37:03 2018 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 1fPG50-0002S4-TW for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jun 2018 01:37:03 +0200 Original-Received: from localhost ([::1]:33062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPG76-0000XI-0k for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Jun 2018 19:39:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPG6x-0000XB-Dt for bug-gnu-emacs@gnu.org; Sat, 02 Jun 2018 19:39:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPG6w-0002tv-Ls for bug-gnu-emacs@gnu.org; Sat, 02 Jun 2018 19:39:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51752) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fPG6w-0002tp-HW for bug-gnu-emacs@gnu.org; Sat, 02 Jun 2018 19:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fPG6w-00015H-83 for bug-gnu-emacs@gnu.org; Sat, 02 Jun 2018 19:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Jun 2018 23:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31688 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31688-submit@debbugs.gnu.org id=B31688.15279827324141 (code B ref 31688); Sat, 02 Jun 2018 23:39:02 +0000 Original-Received: (at 31688) by debbugs.gnu.org; 2 Jun 2018 23:38:52 +0000 Original-Received: from localhost ([127.0.0.1]:59649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPG6m-00014j-3B for submit@debbugs.gnu.org; Sat, 02 Jun 2018 19:38:52 -0400 Original-Received: from smtp-1.orcon.net.nz ([60.234.4.34]:41098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPG6k-00014a-AX for 31688@debbugs.gnu.org; Sat, 02 Jun 2018 19:38:50 -0400 Original-Received: from [10.253.37.70] (port=15634 helo=webmail.orcon.net.nz) by smtp-1.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1fPG6e-0003nv-Tu; Sun, 03 Jun 2018 11:38:45 +1200 Original-Received: from [150.107.175.190] via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Sun, 03 Jun 2018 11:38:44 +1200 In-Reply-To: <87po199id0.fsf@gmail.com> X-Sender: psainty@orcon.net.nz X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- 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:146883 Archived-At: On 2018-06-03 06:02, Noam Postavsky wrote: > I don't think this is a bug, the compiler coalesces equal string > literals. Ouch. Has this always been the case? I've been firmly under the impression that the lisp reader creates a new lisp objects whenever it reads a string, so it's hugely surprising to me to learn that (eq str1 str2) can return different results depending on whether or not the code was byte-compiled. I see that this is t when compiled and nil otherwise: (let ((str1 "abc") (str2 "abc")) (eq str1 str2))) But this is nil regardless: (eq "abc" "abc") This seems kinda horrible? -Phil