Re: reason for having separate package.lisp?
- From: pjb@xxxxxxxxxxxxxxxxx (Pascal J. Bourguignon)
- Date: Fri, 27 Feb 2009 11:55:32 +0100
budden <budden-lisp@xxxxxxx> writes:
Hi list,
I wonder why package.lisp in asdf systems is a separate file? Is it
required for portability due to some bugs in some of implementations
or is there some other reason? I'd like to have defpackage form inside
the source file sometimes. This way it is easier to achieve
modularity.
I usually agree with you. For simple projects.
However, you may have packages big enough that you want to implement
them in several source files. In this case, it's better to put the
defpackage in a separate file.
Or you may have a graph of dependencies between the packages that is
not a D.A.G, and therefore it would be difficult to load the files in
the right order. In this case too it's better to put the defpackage
forms in a separate file.
--
__Pascal Bourguignon__
.
- Follow-Ups:
- Re: reason for having separate package.lisp?
- From: budden
- Re: reason for having separate package.lisp?
- References:
- reason for having separate package.lisp?
- From: budden
- reason for having separate package.lisp?
- Prev by Date: Re: Optimize a function for speed
- Next by Date: Re: Creating setf expanders on methods
- Previous by thread: Re: reason for having separate package.lisp?
- Next by thread: Re: reason for having separate package.lisp?
- Index(es):
Relevant Pages
|