GNU bug report logs - #35315
[guile 2.9.1] Loading a module from subfolder fails

Previous Next

Package: guile;

Reported by: Jan <tona_kosmicznego_smiecia <at> interia.pl>

Date: Thu, 18 Apr 2019 23:16:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: lloda <lloda <at> sarc.name>
To: Jan <tona_kosmicznego_smiecia <at> interia.pl>
Cc: 35315 <at> debbugs.gnu.org
Subject: bug#35315: It's not a bug, sorry
Date: Tue, 23 Apr 2019 00:33:08 +0200
[Message part 1 (text/plain, inline)]
> On 22 Apr 2019, at 23:45, Jan <tona_kosmicznego_smiecia <at> interia.pl> wrote:
> 
> I've found out it's not a bug, I just didn't  add (define-module (my-modules displays)) - the name of the folder to my module. Sorry for that.
> 
> Have a nice day!
> 
> 
> --
> Jan
> 


Tbh I've always find this requirement a bit annoying. Clearly in an inline definition the full name must be given, but if the module is found through the path, which is the most common case, all you get from the module declaration is a chance to make a mistake.

I guess I'd like for it to be a nameless variant (define-module) that would work only in module-files, or even no declaration at all, just calling (use-modules (a b c)), then if a/b/c.scm is found, would make the contents of c.scm into a module (a b c). I dunno.

[Message part 2 (text/html, inline)]

This bug report was last modified 6 years and 54 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.