unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Joris van der Hoeven <TeXmacs@math.u-psud.fr>
Cc: guile-user@gnu.org
Subject: Re: Two questions about the guile module system
Date: Sat, 5 Apr 2003 12:25:42 +0200 (CEST)	[thread overview]
Message-ID: <Pine.GSO.4.33.0304051216570.534-100000@sunanh> (raw)
In-Reply-To: <878yuvd14m.fsf@zagadka.ping.de>


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 <vdhoeven@texmacs.org>
http://www.texmacs.org: GNU TeXmacs scientific text editor
http://www.math.u-psud.fr/~vdhoeven: personal homepage
-----------------------------------------------------------



_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


  parent reply	other threads:[~2003-04-05 10:25 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-31  9:23 Two questions about the guile module system Joris van der Hoeven
2003-03-31 14:33 ` Marius Vollmer
2003-03-31 15:00   ` Joris van der Hoeven
2003-03-31 15:08     ` Marius Vollmer
2003-04-04 16:06       ` Joris van der Hoeven
2003-04-05 10:25       ` Joris van der Hoeven [this message]
2003-04-05 11:30         ` Marius Vollmer
2003-04-05 13:39           ` Joris van der Hoeven
2003-04-05 17:00             ` Marius Vollmer
2003-04-07 17:11               ` Paul Jarc
2003-04-08 12:39                 ` Marius Vollmer
2003-04-05 16:39           ` Joris van der Hoeven
2003-04-05 17:17             ` Marius Vollmer

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=Pine.GSO.4.33.0304051216570.534-100000@sunanh \
    --to=texmacs@math.u-psud.fr \
    --cc=guile-user@gnu.org \
    /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).