unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Viktor Pavlenko <vvp@rogers.com>
Subject: Re: re-using a module
Date: Tue, 30 Mar 2004 12:27:36 -0500	[thread overview]
Message-ID: <20040330172736.KQOK396979.fep03-mail.bloor.is.net.cable.rogers.com@localhost> (raw)

> From: David Pirotte <david@altosw.be>
> Date: 2004/03/30 Tue AM 11:13:11 EST
> 
> On Tue, 30 Mar 2004 10:50:45 -0500
> prj@po.cwru.edu (Paul Jarc) wrote:
> 
> > Viktor Pavlenko <vvp@rogers.com> wrote:
> > > is there a way to reload a module in guile?
> > 
> > Untested black magic:
> > (use-modules (aaa))
> > (local-remove '(app modules aaa))
> > (use-modules (aaa))
> 

Thanks, that's great. OTOH why isn't it done by default? Shouldn't
guile do a cleanup if it fails to load a module? Besides I'm not too
inclined to use "black magic" in my code...

> once a module has been used, unless you define new
> symbols/functions/methods ... you can simply load the file
> 
> 	(load "xxx.scm")
> 

This (although painful) works great too. Incidentally, I looked for
a C equivalent, and found only scm_primitive_load. Scheme primitive-load
differs from load in that it disregards the module's export list 
(makes all module's symbols visible :-(

Thanks for your help.

Viktor





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


             reply	other threads:[~2004-03-30 17:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-30 17:27 Viktor Pavlenko [this message]
2004-03-30 11:37 ` re-using a module 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
  -- strict thread matches above, loose matches on Subject: below --
2004-03-30 18:33 Viktor Pavlenko
2004-03-30 15:34 Viktor Pavlenko
2004-03-30 15:50 ` Paul Jarc
2004-03-30 16:13   ` David Pirotte

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=20040330172736.KQOK396979.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).