On 1/5/06, Jared Davis <[EMAIL PROTECTED]> wrote:

> But I seem to be having trouble with using "import" to do the same thing.  For
> example, when I write:
>
>     (defpackage "FOO" (:use))
>     (in-package "FOO")
>     (LISP::import 'COMMON-LISP::nil)
>
> Then (LISP::symbol-package 'nil) returns the FOO package (I had hoped it would
> return the COMMON-LISP package), and when I write (LISP::equal (LISP::symbolp 
> 3)
> 'nil), it returns COMMON-LISP:NIL (I had hoped it would return COMMON-LISP:T).

CL:IMPORT takes a list of symbols as its second argument.  You gave it
the empty list, meaning you don't want to import any symbols.  Pass it
a list of one item, the symbol CL:NIL, like this:

  (cl:import '(cl:nil))


Reply via email to