home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / lisp / 2327 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  2.3 KB

  1. Path: sparky!uunet!sun-barr!ames!haven.umd.edu!mimsy!prometheus!media!hqda-ai!grant
  2. From: grant@pentagon-gw.army.mil (Pete Grant)
  3. Newsgroups: comp.lang.lisp
  4. Subject: Re: Defsystem: Is this is a feature or a bug?
  5. Keywords: defsystem packages including systems
  6. Message-ID: <1992Aug27.005611.20462@pentagon-gw.army.mil>
  7. Date: 27 Aug 92 00:56:11 GMT
  8. References: <1992Aug23.130346.22483@cs.cornell.edu>
  9. Organization: U.S. Army Artificial Intelligence Center, The Pentagon
  10. Lines: 60
  11.  
  12. In article <1992Aug23.130346.22483@cs.cornell.edu> raman@cs.cornell.edu (T. V. Raman) writes:
  13. >
  14. >Hi!
  15. >
  16. >I am using defsystem to build a system that is made up of several
  17. >other systems.
  18. >
  19. >Each subsystem has its own package and these systems have also been
  20. >defined using defsystem, and the dependencies correctly declared. 
  21. >
  22. >I have: 
  23. >
  24. Without seeing the files, it's hard to diagnose, but one possibility
  25. is that your defsystem file is in the package for your system.
  26.  
  27. Usually the defsystem file header should be in package user.  If 
  28. that's not the case, use m-X Set Package ZMACS command.
  29.  
  30. If that's not the culprit, check for references to the package before
  31. its declaration.
  32.  
  33. Hope this helps.
  34.  
  35. Pete.
  36. >Main system MAIN which depends on SUB1 SUB2 SUB3.
  37. >
  38. >SUB(i) have their own packages.
  39. >
  40. >SUB1 itself has sub11 as a subsystem and sub11 has its own package. 
  41. >
  42. >The system definition for each of the systems contains a line at the
  43. >top of the file of the form
  44. >
  45. >(unless (find-package ..) (make-package ..)) for that particular
  46. >system. 
  47. >
  48. >With the above setup if I do:
  49. >(load-system 'main)
  50. >
  51. >I get the following error:
  52. >package sub1 is not valid: supply a new package.
  53. >
  54. >The problem disappears if I put the lines
  55. >
  56. >(unless (find-package sub1) (make-package ..) )  along  with similar
  57. >declarations for sub2 sub3 and sub11 in the file main.system
  58. >
  59. >I feel that this is uncalled for since main.system should be loading
  60. >sub1.system and not expect to see the package declaration for sub1
  61. >before this time.
  62. >
  63. >All explanations/tips welcome, maybe there is a good reason why
  64. >defsystem does the above.
  65. >
  66. >--Raman
  67. >-- 
  68. >   T. V. Raman <raman@cs.cornell.edu>Tel: (607)255-9202  R 272-3649
  69. >                       Office: 4116 Upson Hall,
  70. >Department of Computer Science, Cornell University Ithaca NY 14853-6201
  71. >                Res: 226 Bryant Avenue Ithaca NY 14850
  72.