unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: lloda <lloda@sarc.name>
To: Yuval Langer <yuval.langer@gmail.com>
Cc: guile-user@gnu.org
Subject: Re: Weird import behaviour of digital modules
Date: Sat, 8 Jun 2024 15:59:12 +0200	[thread overview]
Message-ID: <72D47188-36F7-49D8-8E25-7C2932A27728@sarc.name> (raw)
In-Reply-To: <CAK0OjG3N-cmRmrEOGYLjWc6hj4L0L-WqZi2HgskCZ3fTXPSRAw@mail.gmail.com>



> On 7 Jun 2024, at 21:51, Yuval Langer <yuval.langer@gmail.com> wrote:
> 
> In this commit I have the WEIRDEST behaviour:
> 
> https://codeberg.org/kakafarm/guile-srfi-189/commit/6e72cc50cc6b068de726f6e97b249a5af26d883c
> 
> When I run the following command at the repository worktree root:
> 
> ```
> guix shell -C guile -- guile -L . test-guile.scm
> ```
> 
> all tests pass, but at line 24 of test-body.scm we have:
> 
> ```
> (import (srfi 189))
> ```
> 
> and that should not work on Guile, right?  That's why we have SRFIs
> located at `(srfi srfi-189)`, no?
> 
> Thank you,
> Yuval Langer.

hi Yuval, 

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




  reply	other threads:[~2024-06-08 13:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-07 19:51 Weird import behaviour of digital modules Yuval Langer
2024-06-08 13:59 ` lloda [this message]
2024-06-08 17:30   ` Tomas Volf
2024-06-08 21:15     ` lloda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=72D47188-36F7-49D8-8E25-7C2932A27728@sarc.name \
    --to=lloda@sarc.name \
    --cc=guile-user@gnu.org \
    --cc=yuval.langer@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).