home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.lisp
- Path: sparky!uunet!usc!rpi!batcomputer!cornell!raman
- From: raman@cs.cornell.edu (T. V. Raman)
- Subject: Defsystem: Is this is a feature or a bug?
- Message-ID: <1992Aug23.130346.22483@cs.cornell.edu>
- Summary: Why does defsystem behave as follows?
- Keywords: defsystem packages including systems
- Organization: Cornell Univ. CS Dept, Ithaca NY 14853
- Date: Sun, 23 Aug 1992 13:03:46 GMT
- Lines: 47
-
-
- 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:
-
- 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
-