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

  1. Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!mkant
  2. From: mkant+@cs.cmu.edu (Mark Kantrowitz)
  3. Newsgroups: comp.lang.lisp
  4. Subject: Re: Defsystem: Is this is a feature or a bug?
  5. Message-ID: <Btnw4H.Gwn.1@cs.cmu.edu>
  6. Date: 27 Aug 92 21:38:38 GMT
  7. Article-I.D.: cs.Btnw4H.Gwn.1
  8. References: <1992Aug23.130346.22483@cs.cornell.edu> <1992Aug26.163927.16225@puma.ATL.GE.COM> <1992Aug27.161401.6984@cs.cornell.edu>
  9. Sender: news@cs.cmu.edu (Usenet News System)
  10. Organization: School of Computer Science, Carnegie Mellon
  11. Lines: 23
  12. Nntp-Posting-Host: glinda.oz.cs.cmu.edu
  13.  
  14. T. V. Raman writes:
  15. > With the above setup if I do:
  16. > (load-system 'main)
  17. >
  18. > I get the following error:
  19. >     package sub1 is not valid: supply a new package.
  20. >
  21. > All explanations/tips welcome, maybe there is a good reason why
  22. > defsystem does the above.
  23. >
  24. > I am using lucid common lisp 4.1 on a sparc station with the defsystem
  25. > available from cmu in the lisp-utilities directory.
  26.  
  27. When a package is specified as part of a system, the current version
  28. of defsystem uses IN-PACKAGE to switch to the package. This will not
  29. work correctly in a CLtL2-compliant Lisp, since IN-PACKAGE no longer
  30. creates the package if it doesn't already exist. I would recommend
  31. placing the defpackage forms in a file which is loaded at the
  32. beginning of the system (e.g., all the rest of the files in the system
  33. depend on it), and placing appropriate IN-PACKAGE forms in the
  34. beginning of each file of the system.
  35.  
  36. --mark
  37.