From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jan Nieuwenhuizen Newsgroups: gmane.lisp.guile.bugs Subject: bug#47245: re-defining imported symbol to itself fails Date: Thu, 18 Mar 2021 17:51:17 +0100 Organization: AvatarAcademy.nl Message-ID: <87o8fgz9q2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12719"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) To: 47245@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Thu Mar 18 18:19:31 2021 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lMwJ1-0003Al-Bq for guile-bugs@m.gmane-mx.org; Thu, 18 Mar 2021 18:19:31 +0100 Original-Received: from localhost ([::1]:51102 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMwJ0-0000lf-Cm for guile-bugs@m.gmane-mx.org; Thu, 18 Mar 2021 13:19:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMvsQ-0004Fb-Mx for bug-guile@gnu.org; Thu, 18 Mar 2021 12:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36348) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMvsQ-0000kk-Dc for bug-guile@gnu.org; Thu, 18 Mar 2021 12:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lMvsQ-0003A2-BE for bug-guile@gnu.org; Thu, 18 Mar 2021 12:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 18 Mar 2021 16:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47245 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161608628912108 (code B ref -1); Thu, 18 Mar 2021 16:52:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Mar 2021 16:51:29 +0000 Original-Received: from localhost ([127.0.0.1]:47892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMvrt-00039D-9k for submit@debbugs.gnu.org; Thu, 18 Mar 2021 12:51:29 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:58744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMvrr-000395-Jt for submit@debbugs.gnu.org; Thu, 18 Mar 2021 12:51:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37442) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMvrr-0003gB-19 for bug-guile@gnu.org; Thu, 18 Mar 2021 12:51:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59127) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMvrp-0000TZ-Ey; Thu, 18 Mar 2021 12:51:26 -0400 Original-Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=39436 helo=dundal.janneke.lilypond.org) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lMvrn-0001cY-3c; Thu, 18 Mar 2021 12:51:25 -0400 X-Url: http://AvatarAcademy.nl X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:9995 Archived-At: --=-=-= Content-Type: text/plain Hi! Using the attached foo.scm and bar.scm, Guile 2.2 nicely redefines %foo and %baz: --8<---------------cut here---------------start------------->8--- $ guild compile -L . -o foo.go foo.scm wrote `foo.go' 17:48:10 janneke@dundal:~/src/guile/master [env] $ guild compile -L . -o bar.go bar.scm wrote `bar.go' 17:48:12 janneke@dundal:~/src/guile/master [env] $ guile -C . -c '(use-modules (bar))' foo: "foo" baz: "baz" 17:48:16 janneke@dundal:~/src/guile/master [env] $ guile -C . -c '(use-modules (bar))' foo: "foo" baz: "baz" --8<---------------cut here---------------end--------------->8--- Guile-3.0 sets %foo to *unspecified*: --8<---------------cut here---------------start------------->8--- $ meta/build-env meta/guild compile -L . -o foo.go foo.scm wrote `foo.go' 17:50:03 janneke@dundal:~/src/guile/master [env] $ meta/build-env guild compile -L . -o bar.go bar.scm wrote `bar.go' 17:50:10 janneke@dundal:~/src/guile/master [env] $ meta/build-env meta/guile -C . -c '(use-modules (bar))' foo: # baz: "baz" --8<---------------cut here---------------end--------------->8--- Greetings, Janneke --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=foo.scm Content-Transfer-Encoding: base64 KGRlZmluZS1tb2R1bGUgKGZvbykKICAjOmV4cG9ydCAoJWZvbykpCgooZGVmaW5lICVmb28gImZv byIpCg== --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=bar.scm Content-Transfer-Encoding: base64 KGRlZmluZS1tb2R1bGUgKGJhcikKICAjOnVzZS1tb2R1bGUgKGZvbykpCgooZGVmaW5lIChiYXI/ KSAjZikKCihkZWZpbmUgJWZvbyAoaWYgKGJhcj8pICJiYXIiICVmb28pKQoKKGZvcm1hdCAjdCAi Zm9vOiB+c1xuIiAlZm9vKQoKKGRlZmluZSAlYmF6ICJiYXoiKQooZGVmaW5lICViYXogKGlmIChi YXI/KSAiYmFyIiAlYmF6KSkKCihmb3JtYXQgI3QgImJhejogfnNcbiIgJWJheikK --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com --=-=-=--