unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Blake Shaw <blake@reproduciblemedia.com>
To: Damien Mattei <damien.mattei@gmail.com>
Cc: guile-devel@gnu.org
Subject: Re: possible bug in export
Date: Wed, 03 May 2023 13:36:05 +0700	[thread overview]
Message-ID: <7za5yl53ac.fsf@reproduciblemedia.com> (raw)
In-Reply-To: <CADEOadcZLOwn-+X+MV8kOAOoE7t9y_6CmdsP_bq=6MRjYoK8Ew@mail.gmail.com>


I would just chime in that this has caused me some trouble in the past,
where an unbound variable is exported by a module. 

Damien Mattei <damien.mattei@gmail.com> writes:

> hello,
> i noticed that when defining a module and exporting  a procedure not defined this does not cause
> an error in Guile ( at the opposite to Racket for example).
>
> example:
> (define-module (my_module)
>    #:export (my_undefined_procedure)
>
> (include-from-path "file.scm"))
>
> in REPL:
> (use-modules (my_module))
>
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> Unbound variable: my_undefined_procedure
>
> Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
> scheme@(guile-user) [1]> ,q
>
> regards,
> damien




      reply	other threads:[~2023-05-03  6:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-01  5:33 possible bug in export Damien Mattei
2023-05-03  6:36 ` Blake Shaw [this message]

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=7za5yl53ac.fsf@reproduciblemedia.com \
    --to=blake@reproduciblemedia.com \
    --cc=damien.mattei@gmail.com \
    --cc=guile-devel@gnu.org \
    /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).