From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Markus Sauermann" Newsgroups: gmane.emacs.bugs Subject: bug#7145: elisp-code behaves differently after byte-compilation Date: Sat, 02 Oct 2010 03:53:49 +0200 Message-ID: <20101002015349.23590@gmx.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1285986890 4541 80.91.229.12 (2 Oct 2010 02:34:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 2 Oct 2010 02:34:50 +0000 (UTC) To: 7145@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 02 04:34:48 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 1P1rw0-0003Mn-H1 for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Oct 2010 04:34:48 +0200 Original-Received: from localhost ([127.0.0.1]:38912 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1rvz-0006Gz-U6 for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Oct 2010 22:34:47 -0400 Original-Received: from [140.186.70.92] (port=50077 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1rZY-0000oM-1D for bug-gnu-emacs@gnu.org; Fri, 01 Oct 2010 22:11:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1rZW-0005UM-JC for bug-gnu-emacs@gnu.org; Fri, 01 Oct 2010 22:11:35 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41623) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1rZW-0005UF-Hc for bug-gnu-emacs@gnu.org; Fri, 01 Oct 2010 22:11:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P1rLR-000477-Q1; Fri, 01 Oct 2010 21:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Markus Sauermann" 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 01:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7145 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.128598461615805 (code B ref -1); Sat, 02 Oct 2010 01:57:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Oct 2010 01:56:56 +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 1P1rLM-00046s-Ad for submit@debbugs.gnu.org; Fri, 01 Oct 2010 21:56:56 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1rFZ-00043e-GX for submit@debbugs.gnu.org; Fri, 01 Oct 2010 21:50:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1rIS-0002X7-OJ for submit@debbugs.gnu.org; Fri, 01 Oct 2010 21:53:57 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:46936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1rIS-0002X3-MQ for submit@debbugs.gnu.org; Fri, 01 Oct 2010 21:53:56 -0400 Original-Received: from [140.186.70.92] (port=57014 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1rIR-0005tf-KJ for bug-gnu-emacs@gnu.org; Fri, 01 Oct 2010 21:53:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1rIQ-0002Wj-2L for bug-gnu-emacs@gnu.org; Fri, 01 Oct 2010 21:53:55 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:39167 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1P1rIP-0002WY-Lo for bug-gnu-emacs@gnu.org; Fri, 01 Oct 2010 21:53:54 -0400 Original-Received: (qmail 21740 invoked by uid 0); 2 Oct 2010 01:53:50 -0000 Original-Received: from 84.153.89.109 by www156.gmx.net with HTTP; Sat, 02 Oct 2010 03:53:49 +0200 (CEST) X-Authenticated: #2765835 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX1+Av+pcMH6AT4Acr2bsIj0Xp4haz7uIiOHC0wJpia uFb36PmedJrf+PCGV0mFNfBvlHfD4k4Yn3yw== X-GMX-UID: maKRe15wbGInT3JCR2Rna5tvcmZ1ZtxE X-FuHaFi: 0.67000000000000004 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Fri, 01 Oct 2010 21:56:55 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 01 Oct 2010 21:57:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Fri, 01 Oct 2010 22:34:42 -0400 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:40629 Archived-At: Hi, I understand that byte-compiled code should do the same as the uncompiled code (besides the macro-expansion problematic) 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 --- which clearly means the byte compiation is somewhat broken. It seems during compilation the two strings "foo" are treated as the same string. Regards Markus -- Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief! Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail