From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Newsgroups: gmane.lisp.guile.devel Subject: Re: Re-exporting a replaced binding Date: Mon, 06 Jan 2020 10:54:43 +0100 Message-ID: <871rscewpo.fsf@gnu.org> References: <87r20go0j9.fsf@inria.fr> <87woa6z0d3.fsf@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="76204"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: Guile Devel To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jan 06 10:54:53 2020 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ioP64-000Jh7-S9 for guile-devel@m.gmane.org; Mon, 06 Jan 2020 10:54:52 +0100 Original-Received: from localhost ([::1]:49974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioP62-0005O9-LE for guile-devel@m.gmane.org; Mon, 06 Jan 2020 04:54:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59208) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioP5y-0005Nq-Aw for guile-devel@gnu.org; Mon, 06 Jan 2020 04:54:47 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ioP5x-0002V9-CD; Mon, 06 Jan 2020 04:54:45 -0500 Original-Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=57604 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ioP5w-0002Li-WF; Mon, 06 Jan 2020 04:54:45 -0500 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 17 =?utf-8?Q?Niv=C3=B4se?= an 228 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu In-Reply-To: <87woa6z0d3.fsf@pobox.com> (Andy Wingo's message of "Sun, 05 Jan 2020 11:03:20 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:20232 Archived-At: Hi! Andy Wingo skribis: > On Fri 03 Jan 2020 19:30, Ludovic Court=C3=A8s writes: [...] >> Should the #:re-export clause propagate the replace bit, or should >> it not? :-) > > It is a good question :) Before, if you re-exported a #:replace > binding, it wasn't possible to have it be exported without the "replace" > bit set. After the change it is possible to do either, and the default > changes to not replacing. From NEWS: > > Note to make this change, we had to change the way replacement flags > are stored, to being associated with modules instead of individual > variable objects. This means that users who #:re-export an imported > binding that was already marked as #:replace by another module will > now see warnings, as they need to use #:re-export-and-replace instead. > > The 3.0 behavior differs from 2.2 in this regard, although it's just > warnings and not run-time behavior. I am sympathetic to the concern > that it can be difficult to make a system that warns/doesn't warn in the > same way on 2.2 vs 3.0 but I think the change is the right thing, as the > new behavior is more expressive. Because it's a user-visible change it > is in NEWS. LMK if you think we need a change here! I agree that the new mechanism is more expressive, I guess I just hadn=E2= =80=99t realized how it affects re-exports of already-exported bindings. It=E2=80= =99s easily addressed anyway. Thank you! Ludo=E2=80=99.