[Top][All Lists]

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

Re: re-using a module

From: Thien-Thi Nguyen
Subject: Re: re-using a module
Date: Thu, 01 Apr 2004 07:12:25 +0200

   From: Viktor Pavlenko <address@hidden>
   Date: Wed, 31 Mar 2004 20:01:43 -0500

   There is more to it. local-remove works only if the module haven't
   been loaded. It's not possible to un-load a successfully loaded
   module with it: [...]

probably it is better to speak of "unlinking" a module from the current
module which implies breaking a single edge, rather than "unloading"
which implies de-allocation of resources and a (potentially) cascading
process of breaking many edges.  how does this syntax strike you:

(unlink-modules MODULE-NAME [...])      ; or maybe "unuse-modules" ?

perhaps this should only be available via (ice-9 session), aimed at
interactive repls primarily.

   It would be cool if there was a way to reload modules too.

eventually the module system must support complete phase separation
between reading and evaluation.  by reload, do you mean re-read, re-eval
or both?  could you give an example of how reloading would be used?

i just finished the "How to Use Modules in PLT Scheme v200" webpage; it
looks like the guile module system has a lot of enhancement opportunity


reply via email to

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