From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#7145: elisp-code behaves differently after byte-compilation Date: Sat, 02 Oct 2010 10:54:47 +0200 Message-ID: References: <20101002015349.23590@gmx.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1286011823 10613 80.91.229.12 (2 Oct 2010 09:30:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 2 Oct 2010 09:30:23 +0000 (UTC) Cc: 7145@debbugs.gnu.org To: "Markus Sauermann" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 02 11:30:22 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P1yQA-0005IF-03 for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Oct 2010 11:30:22 +0200 Original-Received: from localhost ([127.0.0.1]:43478 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1yQ9-0002oQ-Af for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Oct 2010 05:30:21 -0400 Original-Received: from [140.186.70.92] (port=45316 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1yIs-0001GS-WC for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2010 05:22:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1y7w-00062I-UZ for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2010 05:11:34 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1y7w-00062B-Ry for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2010 05:11:32 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P1xp4-0006nN-Hy; Sat, 02 Oct 2010 04:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Oct 2010 08:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7145 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7145-submit@debbugs.gnu.org id=B7145.128600951126115 (code B ref 7145); Sat, 02 Oct 2010 08:52:02 +0000 Original-Received: (at 7145) by debbugs.gnu.org; 2 Oct 2010 08:51:51 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1xot-0006nA-3j for submit@debbugs.gnu.org; Sat, 02 Oct 2010 04:51:51 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1xor-0006n5-54 for 7145@debbugs.gnu.org; Sat, 02 Oct 2010 04:51:49 -0400 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id BE92C1C000FE; Sat, 2 Oct 2010 10:54:48 +0200 (CEST) X-Auth-Info: 8PwIi0UfDs1lLbwGyXLOYopCN4D55vv4Tkb1qv8j6KY= Original-Received: from whitebox.home (ppp-88-217-97-255.dynamic.mnet-online.de [88.217.97.255]) by mail.mnet-online.de (Postfix) with ESMTPA id 80B8B1C001EA; Sat, 2 Oct 2010 10:54:48 +0200 (CEST) Original-Received: by whitebox.home (Postfix, from userid 501) id B435C1E52EE; Sat, 2 Oct 2010 10:54:47 +0200 (CEST) X-Yow: Hey!! Let's watch the' ELEVATOR go UP and DOWN at th' HILTON HOTEL!! In-Reply-To: <20101002015349.23590@gmx.net> (Markus Sauermann's message of "Sat, 02 Oct 2010 03:53:49 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 02 Oct 2010 04:52:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40632 Archived-At: "Markus Sauermann" writes: > The following code however shows a case where this is not the case. > > --- BEGIN CODE --- > (let ((fun (lambda () (let ((bar "foo") > (baz "foo")) > (eq bar baz))))) > (list (funcall (byte-compile fun)) > (funcall fun))) > --- END CODE--- > > Evaluation this code (don't try to byte-compile it, because it is buggy ;-) ) results in: > > --- BEGIN OUTPUT --- > (t nil) > --- END OUTPUT --- This is not a bug. You cannot depend on the uniqueness of literal strings. If you want to compare strings you should use equal. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."