Re: [PATCH] use ASDF functions instead of `logical-pathname-translations'

Espen S Johnsen <[email protected]> 03 Jan 2008 15:27:37 +0100
Newsgroups gmane.lisp.clg.devel
Message-ID <[email protected]>
Luca Capello <[email protected]> writes:

> To remove the need to specify a `logical-pathname-translations', I
> develop the attached patch which uses ASDF functions instead, since clg
> already depends on ASDF.
> 
> While I was at it, I modified that clg/gdk/export.lisp to use
> `export-from-files' similar to clg/gtk/export.lisp.
> 
> Comments are welcome!

This was indeed a very good idea. I haven't applied your patch as such,
but instead created a new macro called export-from-system. This macro
will export symbols from all components that the file in which it is
used (typically the export.lisp files) depends on. That way new files
from which symbols should be exported automatically can be added by just
modifying the system definition.


Luigi Panzeri <[email protected]> writes:

> I think that the same results can be achieved with a less invasive
> patch. You just need to setup pathname translation in clg-tools.asd
> before doing anything, like in the patch attached.

For backward compatibility (and to be able to run the examples) I've
also done this, although I included it directly at the top-level and
not wrapped in method definitions.

-- 
Espen

-------------------------------------------------------------------------
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/