home *** CD-ROM | disk | FTP | other *** search
- 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
- From: mkant+@cs.cmu.edu (Mark Kantrowitz)
- Newsgroups: comp.lang.lisp
- Subject: Re: Defsystem: Is this is a feature or a bug?
- Message-ID: <Btnw4H.Gwn.1@cs.cmu.edu>
- Date: 27 Aug 92 21:38:38 GMT
- Article-I.D.: cs.Btnw4H.Gwn.1
- References: <1992Aug23.130346.22483@cs.cornell.edu> <1992Aug26.163927.16225@puma.ATL.GE.COM> <1992Aug27.161401.6984@cs.cornell.edu>
- Sender: news@cs.cmu.edu (Usenet News System)
- Organization: School of Computer Science, Carnegie Mellon
- Lines: 23
- Nntp-Posting-Host: glinda.oz.cs.cmu.edu
-
- T. V. Raman writes:
- > With the above setup if I do:
- > (load-system 'main)
- >
- > I get the following error:
- > package sub1 is not valid: supply a new package.
- >
- > All explanations/tips welcome, maybe there is a good reason why
- > defsystem does the above.
- >
- > I am using lucid common lisp 4.1 on a sparc station with the defsystem
- > available from cmu in the lisp-utilities directory.
-
- When a package is specified as part of a system, the current version
- of defsystem uses IN-PACKAGE to switch to the package. This will not
- work correctly in a CLtL2-compliant Lisp, since IN-PACKAGE no longer
- creates the package if it doesn't already exist. I would recommend
- placing the defpackage forms in a file which is loaded at the
- beginning of the system (e.g., all the rest of the files in the system
- depend on it), and placing appropriate IN-PACKAGE forms in the
- beginning of each file of the system.
-
- --mark
-