unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: "Tommi Höynälänmaa" <tommi.hoynalanmaa@gmail.com>,
	"guile-devel@gnu.org" <guile-devel@gnu.org>
Subject: RE: Exporting a nonexistent variable
Date: Mon, 4 Nov 2024 21:43:54 +0100	[thread overview]
Message-ID: <20241104214356.Ykjw2D0014tRJL601kjwhV@laurent.telenet-ops.be> (raw)
In-Reply-To: <ff0a315c-44ce-8c95-fc4b-a326f301c741@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 951 bytes --]

>I think Guile could report a warning if a nonexistent variable is 
>exported as the cause of this kind of errors may be difficult to find in 
>a large program.

During compilation, code is analysed and IIRC there is a warning for unbound variables. (I don’t know if warning is the default though.) Large program should be compiled, so they would get the warning.

So, just compile your modules and you should get warnings for the modules.
(I’m not sure about this particular (export this that) case – is it defining ‘this’ as ‘that’, or is it some kind of symbolic reference that can be created even if the target doesn’t exist? If the latter, maybe that’s not checked for for this warning – I don’t know.)

(Perhaps compilation actually happened, autocompilation is the default though it can be disabled – I don’t know if warnings are enabled for autocompiled dependencies though.)

Best regards,
Maxime Devos

[-- Attachment #2: Type: text/html, Size: 2252 bytes --]

  reply	other threads:[~2024-11-04 20:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-04 12:26 Exporting a nonexistent variable Tommi Höynälänmaa
2024-11-04 20:43 ` Maxime Devos [this message]
2024-11-05  7:25   ` Tommi Höynälänmaa
2024-11-05  9:23     ` Maxime Devos
2024-11-05  9:26       ` Maxime Devos
2024-11-05 10:00       ` Tommi Höynälänmaa
2024-11-13 22:22 ` Attila Lendvai
2024-11-14  9:42   ` Maxime Devos via Developers list for Guile, the GNU extensibility library
2024-11-14 10:27     ` Mikael Djurfeldt

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=20241104214356.Ykjw2D0014tRJL601kjwhV@laurent.telenet-ops.be \
    --to=maximedevos@telenet.be \
    --cc=guile-devel@gnu.org \
    --cc=tommi.hoynalanmaa@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).