[Top][All Lists]

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

Re: Two questions about the guile module system

From: Joris van der Hoeven
Subject: Re: Two questions about the guile module system
Date: Sat, 5 Apr 2003 12:25:42 +0200 (CEST)

Hi again,

I now notice that my solution from yesterday
does not work with more recent versions of guile.
Unfortunately this is not the first time that
I found Guile to be unstable...

On 31 Mar 2003, Marius Vollmer wrote:
> For example:
>     (define-macro (define-my-module name . rest)
>       `(define-module ,name
>          :use-module (library)
>          ,@rest))
> You then only need to make sure that 'define-my-module' is available
> in the current module when you load a file that uses it.

This does not work either, because you usually don't *load*
a module, but *use* it via the command 'use-modules'.
When doing that (I tried in Guile 1.6.3), then the whole context
from where you issued the 'use-modules' command is lost.
This makes it impossible to enhance the root environment
with even a single macro like 'define-my-module'.

Someone has a solution for this problem?
I am more and more getting the impression that
the module system sucks... Worse: it was better
in older versions of Guile.

Joris van der Hoeven <address@hidden> GNU TeXmacs scientific text editor personal homepage

reply via email to

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