Subject: Re: (use-package) vs. (defpackage :use) From: Erik Naggum <erik@naggum.net> Date: 2000/11/10 Newsgroups: comp.lang.lisp Message-ID: <3182849932522607@naggum.net> * "Pierre R. Mai" <pmai@acm.org> | If you don't specify the :use option, then the default package use | list is used, which in most implementations will include the | common-lisp package (and probably some implementation-specific | packages as well). It may be useful to inspect the list of packages that is in this default list so you know what you get. (prog1 (package-use-list (make-package "foobar")) (delete-package "foobar")) => (#<package "common-lisp" ("cl" "lisp") 978: 0::>) Note that this list may differ wildly between implementations, but you will always find the package "common-lisp" in there. | When you then do an additonal use-package, the package you specify | will be _added_ to the package-use-list, so common-lisp & co. stay | there. However, note that use-package defaults the package to the current package, the value of *package*, not the most recently defined package, as in the user's code, so that instruction is actually ineffectual, and it all works by accident. #:Erik -- ALGORITHM: a procedure for solving a mathematical problem in a finite number of steps that frequently involves repetition of an operation. ALGOREISM: a procedure for solving an electoral problem in a finite number of steps that frequently involves repetition of an operation.