home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / lisp / 2283 < prev    next >
Encoding:
Text File  |  1992-08-23  |  1.7 KB  |  59 lines

  1. Newsgroups: comp.lang.lisp
  2. Path: sparky!uunet!usc!rpi!batcomputer!cornell!raman
  3. From: raman@cs.cornell.edu (T. V. Raman)
  4. Subject: Defsystem: Is this is a feature or a bug?
  5. Message-ID: <1992Aug23.130346.22483@cs.cornell.edu>
  6. Summary: Why does defsystem behave as follows?
  7. Keywords: defsystem packages including systems
  8. Organization: Cornell Univ. CS Dept, Ithaca NY 14853
  9. Date: Sun, 23 Aug 1992 13:03:46 GMT
  10. Lines: 47
  11.  
  12.  
  13. Hi!
  14.  
  15. I am using defsystem to build a system that is made up of several
  16. other systems.
  17.  
  18. Each subsystem has its own package and these systems have also been
  19. defined using defsystem, and the dependencies correctly declared. 
  20.  
  21. I have: 
  22.  
  23. Main system MAIN which depends on SUB1 SUB2 SUB3.
  24.  
  25. SUB(i) have their own packages.
  26.  
  27. SUB1 itself has sub11 as a subsystem and sub11 has its own package. 
  28.  
  29. The system definition for each of the systems contains a line at the
  30. top of the file of the form
  31.  
  32. (unless (find-package ..) (make-package ..)) for that particular
  33. system. 
  34.  
  35. With the above setup if I do:
  36. (load-system 'main)
  37.  
  38. I get the following error:
  39. package sub1 is not valid: supply a new package.
  40.  
  41. The problem disappears if I put the lines
  42.  
  43. (unless (find-package sub1) (make-package ..) )  along  with similar
  44. declarations for sub2 sub3 and sub11 in the file main.system
  45.  
  46. I feel that this is uncalled for since main.system should be loading
  47. sub1.system and not expect to see the package declaration for sub1
  48. before this time.
  49.  
  50. All explanations/tips welcome, maybe there is a good reason why
  51. defsystem does the above.
  52.  
  53. --Raman
  54. -- 
  55.    T. V. Raman <raman@cs.cornell.edu>Tel: (607)255-9202  R 272-3649
  56.                        Office: 4116 Upson Hall,
  57. Department of Computer Science, Cornell University Ithaca NY 14853-6201
  58.                 Res: 226 Bryant Avenue Ithaca NY 14850
  59.