Phil Roc <
phi...@free.fr> wrote:
> Good morning,
> If I run the following code, I get error messaging stating that
> that defun, format, ... are not declared in package BOB, ...
> [...]
>
> Are there any other solutions besides uncommenting (:use '("CL")')?
>
To be precise you may or may not get such errors since the default for :use
is implementation-defined: your code might 'work' on some implementations
but not on others.
You could make it 'work' on more by:
(make-package :foo)
(use-package '(:cl) ':foo)
This still leaves the package use list only partly specified (it may
include other packages than the CL package). If you want it
fully-specified you must specify it.
However none of this will make your code actually work: make-package &
use-package are functions so the packages you are making will not exist at
compile time so your code cannot be compiled. That is why you should use
defpackage.
--
the small snake