guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: possible bug in export


From: Blake Shaw
Subject: Re: possible bug in export
Date: Wed, 03 May 2023 13:36:05 +0700

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 via email to

[Prev in Thread] Current Thread [Next in Thread]