From: Viktor Pavlenko <vvp@rogers.com>
Subject: re-using a module
Date: Tue, 30 Mar 2004 10:34:28 -0500 [thread overview]
Message-ID: <20040330153428.JACI396979.fep03-mail.bloor.is.net.cable.rogers.com@localhost> (raw)
Hi all,
is there a way to reload a module in guile?
Example:
file aaa.scm:
--------------------------------------------->8
(define-module (aaa) #:export (a b))
(define a 3)
(define b (lambda (x) (* x 2)) ;;missing `)'
---------------------------------------------8<
guile> (use-modules (aaa))
ERROR: In procedure list:
ERROR: end of file in ./aaa.scm
ABORT: (misc-error)
guile> (use-modules (aaa))
guile>
The second use-modules statement does nothing.
(The behavior is exactly the same in the C interface. My program
loads user-defined modules, and if there happens to be a syntax
error in such a module I have to terminate the program. What I would
like to do is tell the user about the error, let her fix it and reload
the module).
Thanks in advance.
Viktor
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
next reply other threads:[~2004-03-30 15:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-30 15:34 Viktor Pavlenko [this message]
2004-03-30 15:50 ` re-using a module Paul Jarc
2004-03-30 16:13 ` David Pirotte
-- strict thread matches above, loose matches on Subject: below --
2004-03-30 17:27 Viktor Pavlenko
2004-03-30 11:37 ` Issac Trotts
2004-03-31 5:47 ` Thien-Thi Nguyen
2004-04-01 1:01 ` Viktor Pavlenko
2004-04-01 5:12 ` Thien-Thi Nguyen
2004-04-03 5:17 ` Viktor Pavlenko
2004-04-03 5:38 ` Viktor Pavlenko
2004-04-01 5:21 ` Thien-Thi Nguyen
2004-03-30 18:33 Viktor Pavlenko
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=20040330153428.JACI396979.fep03-mail.bloor.is.net.cable.rogers.com@localhost \
--to=vvp@rogers.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).