From: Mikael Djurfeldt <mdj@kvast.blakulla.net>
Cc: djurfeldt@nada.kth.se
Subject: Strange undefined binding bug coupled to module system
Date: Wed, 20 Oct 2004 15:12:21 +0200 [thread overview]
Message-ID: <E1CKGGL-0004pS-IU@witch> (raw)
Loading of the following code:
foo.scm:
----------------------------------------------------------------------
(define-module (foo))
(define (encapsulate proc)
(lambda (_) (proc _)))
(display round)
(newline)
(define round (encapsulate round))
----------------------------------------------------------------------
Gives (since some change during last spring):
guile> (load "foo.scm")
#<primitive-procedure round>
Backtrace:
In unknown file:
?: 0* [primitive-load "foo.scm"]
In foo.scm:
8: 1* (define round (encapsulate round))
8: 2* [encapsulate ...
foo.scm:8:15: While evaluating arguments to encapsulate in expression (encapsulate round):
foo.scm:8:15: Unbound variable: round
ABORT: (unbound-variable)
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile
next reply other threads:[~2004-10-20 13:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-20 13:12 Mikael Djurfeldt [this message]
2004-10-24 18:55 ` Strange undefined binding bug coupled to module system Mikael Djurfeldt
2004-11-04 14:10 ` Marius Vollmer
2004-11-10 8:51 ` Mikael Djurfeldt
2004-12-15 17:29 ` Marius Vollmer
2004-12-15 19:16 ` Mikael Djurfeldt
2004-12-22 15:35 ` Marius Vollmer
2004-12-22 20:29 ` 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=E1CKGGL-0004pS-IU@witch \
--to=mdj@kvast.blakulla.net \
--cc=djurfeldt@nada.kth.se \
/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).