From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "yarl baudig" Newsgroups: gmane.lisp.guile.devel Subject: Re: define-module, #:export and export Date: Fri, 13 Jan 2023 08:58:01 +0100 (CET) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24931"; mail-complaints-to="usenet@ciao.gmane.io" To: jean@abou-samra.fr, "Maxime Devos" , guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Fri Jan 13 08:59:02 2023 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 1pGExq-00066I-AJ for guile-devel@m.gmane-mx.org; Fri, 13 Jan 2023 08:59:02 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGEx4-0000t6-TD; Fri, 13 Jan 2023 02:58:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pGEx3-0000sv-9L for guile-devel@gnu.org; Fri, 13 Jan 2023 02:58:13 -0500 Original-Received: from msg-4.mailo.com ([213.182.54.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pGEx1-00045s-5S for guile-devel@gnu.org; Fri, 13 Jan 2023 02:58:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailoo.org; s=mailo; t=1673596682; bh=LrK/WRKdmOOOFBUGzGVY1nPkpw35JZP7ehnrhu0Dq5E=; h=X-EA-Auth:From:To:Date:Subject:MIME-Version:X-Mailer:Message-ID: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=ehb2E7AKvR/lB0woEii130KsynsvbgTjAeIYO2J1CqEae0C4oO0fIkp7zqqXWy7zN XB00i8+/MgDh7NwJ6/xaEeAjx4KyG9eGi8pgj3XAo4e7P8Q8xn3qnB2yKVdIfq9Euc g1dTiyLhIjhTHi17blB2oiNaJOn0bDNemjENzeG4= Original-Received: by www.mailo.com with http webmail; Fri, 13 Jan 2023 08:58:01 +0100 (CET) X-EA-Auth: CxikaY+2DAnJCkfYozvHcTmsLHxjYJIzDr8WE7D8WwYc52RpTYHUehEVEKiGrQfk69HITKF0enQCyGA5/MClHFTxHQmyas12 X-Priority: 3 X-Mailer: COMS/EA22.05/r20221103 In-Reply-To: Received-SPF: pass client-ip=213.182.54.15; envelope-from=yarl-baudig@mailoo.org; helo=msg-4.mailo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:21570 Archived-At: For completeness, this works as well: lib.scm: (define-module (lib) #:use-module ((main) #:select (thing)) #:export (test)) (define-syntax test (lambda (sintax) (syntax-case sintax () ((test id) (free-identifier=3D? #'id #'thing))))) main.scm: (define-module (main) #:use-module (lib) #:export (thing)) (display (test thing)) (newline) (define thing 5)