From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: bug#11988: eval-case redefinition? Date: Tue, 05 Mar 2013 17:15:18 +0100 Message-ID: <87k3plyga1.fsf@pobox.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1362509709 31726 80.91.229.3 (5 Mar 2013 18:55:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Mar 2013 18:55:09 +0000 (UTC) Cc: 11988@debbugs.gnu.org, ludo@gnu.org, Ian Price To: Daniel Llorens Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Mar 05 19:55:32 2013 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UCx1J-00085f-4q for guile-bugs@m.gmane.org; Tue, 05 Mar 2013 19:55:25 +0100 Original-Received: from localhost ([::1]:38142 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCx0x-000279-Kx for guile-bugs@m.gmane.org; Tue, 05 Mar 2013 13:55:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCx0j-00020c-G7 for bug-guile@gnu.org; Tue, 05 Mar 2013 13:55:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCx0b-0002tx-1Q for bug-guile@gnu.org; Tue, 05 Mar 2013 13:54:49 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56977) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCx0a-0002ts-Uf for bug-guile@gnu.org; Tue, 05 Mar 2013 13:54:40 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UCx0w-0000ZS-BY for bug-guile@gnu.org; Tue, 05 Mar 2013 13:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andy Wingo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 05 Mar 2013 18:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11988 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 11988-submit@debbugs.gnu.org id=B11988.13625096421950 (code B ref 11988); Tue, 05 Mar 2013 18:55:02 +0000 Original-Received: (at 11988) by debbugs.gnu.org; 5 Mar 2013 18:54:02 +0000 Original-Received: from localhost ([127.0.0.1]:32808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCwzp-0000Uw-Sa for submit@debbugs.gnu.org; Tue, 05 Mar 2013 13:54:01 -0500 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:37794 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCwzm-0000Un-5I for 11988@debbugs.gnu.org; Tue, 05 Mar 2013 13:53:51 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 1691ABF78; Tue, 5 Mar 2013 13:53:28 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=9Y6uy/PYz6BO4HZZN+ibsCZvA1c=; b=A3nTdq qxfwp12p8jAiOmyIey7SU9LORkTl+cSCflHxm1xfVlbGfdK7FFu/c5Ck/iTNfuYG afv8UU+dQb9/gc5rxhjMJ+CYmPwocTwDOHcnPcnYDKJ6FwmA93KRN5gZIGVyKfTU HK0dnr9r/ZzbvM887THzN8dYP6KPUmfHF7mQc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=ahazqs9s/rb1WlYkljK3HNuRuscPytK+ gG9ulD69uIibunWKpuGuXvG1BX9Vgzn72wBcOmQt2Z+AUs7YcrB3UhJWavYL02rH Q3J8pbeuzhw5TJX7rDPOoSz6n5G2T3RV38LaW7+KRQlxnDpSaHjreuV7Ho2x3Vqr 2G67KApmf00= Original-Received: from a-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 0E80FBF77; Tue, 5 Mar 2013 13:53:28 -0500 (EST) Original-Received: from badger (unknown [217.91.84.86]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 854A3BF76; Tue, 5 Mar 2013 13:53:27 -0500 (EST) In-Reply-To: (Daniel Llorens's message of "Thu, 19 Jul 2012 15:22:44 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-Pobox-Relay-ID: F7318E8C-85C5-11E2-AFA5-59240E5B5709-02397024!a-pb-sasl-quonix.pobox.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:6841 Archived-At: On Thu 19 Jul 2012 15:22, Daniel Llorens writes: > I was cleaning up an old script which goes like this: > > (define (eval-case ...) > ... > val) > > (define var (eval-case ...)) > > This worked from the REPL, but when loading the file with (load > "script"), var was always #. It turns out that (my) > eval-case is never executed in this case. I wonder if this is related to bug 13865. I tried a script with these contents: (define (eval-case val) val) (define var (eval-case 2)) And I can reproduce the bug with stable-2.0. `master' seems to have the right behavior however. If I had to guess I would think that this was fixed by the following commit on `master': commit 19ef14f9b8b73c04acbbfa6bd993908171bc69f7 Author: Andy Wingo Date: Fri Nov 4 19:37:04 2011 +0100 defined identifiers scoped in the current module * ice-9/psyntax.scm (chi-top-sequence): Wrap defined identifiers with the current module. Fixes http://savannah.gnu.org/bugs/?31472. Or one of the commits around it that has to do with toplevel bindings. Tough to tell, as that code is significantly different in master as compared to stable-2.0. Andy -- http://wingolog.org/