Re: How do I do something after loading a module?
Gary King <[email protected]> Tue, 18 Sep 2007 15:58:40 -0400
| Newsgroups | gmane.lisp.cclan.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Sunil, Baring modifying the system itself, I'd suggest looking at [ASDF- system-connections][1]. It lets you define "weak" links between systems. so that ,. for example, system A will be loaded automatically as soon as both systems B and C are also loaded. From your discussion, this may be happening at too high a level. Please let me know if ASC works for you and/or what you come up with. I think that the long term answer is that someone needs to bite the proverbial bullet and rewrite traverse now that CLisp handles more complex method combinations. [1]: http://common-lisp.net/project/cl-containers/asdf-system- connections/ On Sep 16, 2007, at 1:13 AM, Sunil Mishra wrote: > Hi, > > I'd like to define an operation in ASDF that executes after we've > finished loading a module of a custom class. However, I don't see any > generic functions defined on modules that correspond to an operation > completing on a module. Perform in fact never seems to be called on a > module. We simply traverse the module, and call perform on the > individual source files collected during the traversal. Is there any > way I can get the effect I want? The only thing that comes to mind > right now is to add a "fake" source file that depends on all other > source files in the module, so that I get a perform called on that > source file. > > Not being able to tell when a module has finished loading seems like > an odd design decision. > > Thanks, > > Sunil > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > cclan-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cclan-list -- Gary Warren King, metabang.com Cell: (413) 559 8738 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/