Re: rfc - delay the parsing of system components

Richard M Kreuter <[email protected]> Tue, 14 Oct 2008 09:08:57 -0400
Newsgroups gmane.lisp.cclan.general
Message-ID <[email protected]>
Gary King writes:

> 1. add keyword
> 
> * As in #0, Delay the parsing of system components (so that these can  
> come later)
> * Add a new keyword (as RIchard Kreuter suggested) that loads  
> extensions and which is processed "outside" of and before traverse/ 
> perform. Let's call it :requires
> * An operation will first process the requires form, then expand the  
> component forms, then run the existing traverse/perform

I didn't think my suggestion through.  One way to use an ASDF extension
is to include package-qualified symbols in the DEFSYSTEM form, and so
it's not generally possible to read a DEFSYSTEM form before the relevant
extensions are loaded.  Example:

(defsystem foo
   :requires "my-asdf-stuff"
   :components ((:file "foo" :class my-asdf-stuff:whizbang-source-file)))

So my suggestion won't work for all cases.  Sorry about that.

--
Richard

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/