guile-user
[Top][All Lists]
Advanced

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

re-using a module


From: Viktor Pavlenko
Subject: re-using a module
Date: Tue, 30 Mar 2004 10:34:28 -0500

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







reply via email to

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