From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: lloda Newsgroups: gmane.lisp.guile.user Subject: Re: Weird import behaviour of digital modules Date: Sat, 8 Jun 2024 15:59:12 +0200 Message-ID: <72D47188-36F7-49D8-8E25-7C2932A27728@sarc.name> References: Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="413"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org To: Yuval Langer Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Jun 08 16:00:02 2024 Return-path: Envelope-to: guile-user@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 1sFwbx-000ASb-Ud for guile-user@m.gmane-mx.org; Sat, 08 Jun 2024 16:00:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFwbS-0005GK-LE; Sat, 08 Jun 2024 09:59:30 -0400 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 1sFwbQ-0005G1-Qu for guile-user@gnu.org; Sat, 08 Jun 2024 09:59:28 -0400 Original-Received: from mta-10-4.privateemail.com ([198.54.122.149]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sFwbO-0003c9-VI for guile-user@gnu.org; Sat, 08 Jun 2024 09:59:28 -0400 Original-Received: from mta-10.privateemail.com (localhost [127.0.0.1]) by mta-10.privateemail.com (Postfix) with ESMTP id 6AB2018000B2; Sat, 8 Jun 2024 09:59:16 -0400 (EDT) Original-Received: from [192.168.1.9] (unknown [51.154.167.214]) by mta-10.privateemail.com (Postfix) with ESMTPA; Sat, 8 Jun 2024 09:59:14 -0400 (EDT) In-Reply-To: X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Virus-Scanned: ClamAV using ClamSMTP Received-SPF: pass client-ip=198.54.122.149; envelope-from=lloda@sarc.name; helo=MTA-10-4.privateemail.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19712 Archived-At: > On 7 Jun 2024, at 21:51, Yuval Langer wrote: >=20 > In this commit I have the WEIRDEST behaviour: >=20 > = https://codeberg.org/kakafarm/guile-srfi-189/commit/6e72cc50cc6b068de726f6= e97b249a5af26d883c >=20 > When I run the following command at the repository worktree root: >=20 > ``` > guix shell -C guile -- guile -L . test-guile.scm > ``` >=20 > all tests pass, but at line 24 of test-body.scm we have: >=20 > ``` > (import (srfi 189)) > ``` >=20 > and that should not work on Guile, right? That's why we have SRFIs > located at `(srfi srfi-189)`, no? >=20 > Thank you, > Yuval Langer. hi Yuval,=20 guile has supported the format (srfi n) in import clauses for a while. = Modules can't have numbers as names in general, this only works for = srfis and specifically for this format. For example (srfi 4 gnu) won't = work. Also only import works, not use-modules. Iirc the support was = added for r6rs or r7rs compatibility. regards