home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!data.nas.nasa.gov!taligent!apple!apple!cambridge.apple.com!bill@cambridge.apple.com
- From: bill@cambridge.apple.com (Bill St. Clair)
- Newsgroups: comp.lang.lisp.mcl
- Subject: Re: MCL 2.0 final defsys package screw
- Message-ID: <9209111626.AA22277@cambridge.apple.com>
- Date: 11 Sep 92 17:34:32 GMT
- Sender: info-mcl-request@cambridge.apple.com
- Lines: 22
- Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M
- Full-Name: Bill St. Clair
- Original-To: nathan@akbar.teleos.com
- Original-Cc: kab@cambridge.apple.com (Kim Barrett), info-mcl
-
- > Date: Thu, 10 Sep 92 18:09:48 EST
- > From: kab@cambridge.apple.com (Kim Barrett)
- > To: nathan@akbar.teleos.com
- > Subject: Re: MCL 2.0 final defsys package screw
- > Cc: info-mcl%cambridge.apple.com@apple.COM
- >
- > [...]
- >
- > Another (to me, clearer) way to write it is
- >
- > (let ((*package* (if package (find-package package) *package*)))
- > (load path))
-
- This can get you in trouble if FIND-PACKAGE can't find a package
- with the given name and returns NIL. Binding *package* to NIL tends
- to make MCL very unhappy. Better would be:
-
- (let ((*package* (if package
- (or (find-package package)
- (error "There is no package named: ~s" package))
- *package*)))
- (load path))
-