[Top][All Lists]

[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?


file aaa.scm:
(define-module (aaa) #:export (a b))

(define a 3)
(define b (lambda (x) (* x 2)) ;;missing `)'

guile> (use-modules (aaa))
ERROR: In procedure list:
ERROR: end of file in ./aaa.scm
ABORT: (misc-error)
guile> (use-modules (aaa))

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.


reply via email to

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