From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Rob Browning Newsgroups: gmane.lisp.guile.devel Subject: Modules that work with 2.2 and 3.0 with re-export-and-replace Date: Tue, 25 Feb 2020 18:07:35 -0600 Message-ID: <87eeuitdmg.fsf@trouble.defaultvalue.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="73876"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Wed Feb 26 01:07:56 2020 Return-path: Envelope-to: guile-devel@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 1j6kF0-000J8n-Fs for guile-devel@m.gmane-mx.org; Wed, 26 Feb 2020 01:07:54 +0100 Original-Received: from localhost ([::1]:36288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6kEz-0007kJ-4W for guile-devel@m.gmane-mx.org; Tue, 25 Feb 2020 19:07:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36258) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6kEk-0007hT-7e for guile-devel@gnu.org; Tue, 25 Feb 2020 19:07:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6kEg-0007mG-J2 for guile-devel@gnu.org; Tue, 25 Feb 2020 19:07:38 -0500 Original-Received: from defaultvalue.org ([45.33.119.55]:59764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j6kEg-0007hS-Di for guile-devel@gnu.org; Tue, 25 Feb 2020 19:07:34 -0500 Original-Received: from trouble.defaultvalue.org (localhost [127.0.0.1]) (Authenticated sender: rlb@defaultvalue.org) by defaultvalue.org (Postfix) with ESMTPSA id 6A49520504 for ; Tue, 25 Feb 2020 18:07:33 -0600 (CST) Original-Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id 1799014E071; Tue, 25 Feb 2020 18:07:35 -0600 (CST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 45.33.119.55 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-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:20423 Archived-At: I might be misunderstanding, but it looks like I've hit some cases where 3.0 wants #:re-export-and-replace, and 2.2 rejects it, and I'd like to create modules that work cleanly with both. At first I imagined I might use cond-expand, but it won't work inside a define-module form. Another option might be a procedural re-export-and-replace! that could be called conditionally after the define-module. Yet another option might be to add #:re-export-and-replace to 2.2, perhaps even as just an alias for #:replace (if that's adequate in 2.2), but that has the disadvantage of requiring a 2.2 update, which decreases it's appeal. In any case, if I'm not misunderstanding, I'm happy to help work on whatever improvement we prefer. Thanks -- Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4