Roman Budzianowski <roman.j@...> writes:
> Here is another example. The file being compiled has this code at the
> top:
>
> (unless (find-package :gbbopen-tools)
> (defpackage :gbbopen-tools
> (:use :common-lisp)))
>
> (in-package :gbbopen-tools)
>
> Is this supposed to work?
No. Since you've wrapped the DEFPACKAGE in an UNLESS, it does not have
a compile-time effect. Either use a reader conditional instead of
UNLESS, or wrap the whole form in an EVAL-WHEN.
--
Juho Snellman