home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!ames!haven.umd.edu!mimsy!prometheus!media!hqda-ai!grant
- From: grant@pentagon-gw.army.mil (Pete Grant)
- Newsgroups: comp.lang.lisp
- Subject: Re: Defsystem: Is this is a feature or a bug?
- Keywords: defsystem packages including systems
- Message-ID: <1992Aug27.005611.20462@pentagon-gw.army.mil>
- Date: 27 Aug 92 00:56:11 GMT
- References: <1992Aug23.130346.22483@cs.cornell.edu>
- Organization: U.S. Army Artificial Intelligence Center, The Pentagon
- Lines: 60
-
- In article <1992Aug23.130346.22483@cs.cornell.edu> raman@cs.cornell.edu (T. V. Raman) writes:
- >
- >Hi!
- >
- >I am using defsystem to build a system that is made up of several
- >other systems.
- >
- >Each subsystem has its own package and these systems have also been
- >defined using defsystem, and the dependencies correctly declared.
- >
- >I have:
- >
- Without seeing the files, it's hard to diagnose, but one possibility
- is that your defsystem file is in the package for your system.
-
- Usually the defsystem file header should be in package user. If
- that's not the case, use m-X Set Package ZMACS command.
-
- If that's not the culprit, check for references to the package before
- its declaration.
-
- Hope this helps.
-
- Pete.
- >Main system MAIN which depends on SUB1 SUB2 SUB3.
- >
- >SUB(i) have their own packages.
- >
- >SUB1 itself has sub11 as a subsystem and sub11 has its own package.
- >
- >The system definition for each of the systems contains a line at the
- >top of the file of the form
- >
- >(unless (find-package ..) (make-package ..)) for that particular
- >system.
- >
- >With the above setup if I do:
- >(load-system 'main)
- >
- >I get the following error:
- >package sub1 is not valid: supply a new package.
- >
- >The problem disappears if I put the lines
- >
- >(unless (find-package sub1) (make-package ..) ) along with similar
- >declarations for sub2 sub3 and sub11 in the file main.system
- >
- >I feel that this is uncalled for since main.system should be loading
- >sub1.system and not expect to see the package declaration for sub1
- >before this time.
- >
- >All explanations/tips welcome, maybe there is a good reason why
- >defsystem does the above.
- >
- >--Raman
- >--
- > T. V. Raman <raman@cs.cornell.edu>Tel: (607)255-9202 R 272-3649
- > Office: 4116 Upson Hall,
- >Department of Computer Science, Cornell University Ithaca NY 14853-6201
- > Res: 226 Bryant Avenue Ithaca NY 14850
-