Newsgroups: comp.lang.lisp
From: Zach Beane <x...@xach.com>
Date: Thu, 24 Jan 2008 16:03:45 -0500
Local: Thurs, Jan 24 2008 4:03 pm
Subject: Re: Dumb question about CL packages in SBCL
Mark Reed <markjr...@gmail.com> writes: The problem is that DEFPACKAGE with no specific :USE list will end up > OK, I have a CL library that I'm testing in a variety of > implementations. It works fine in CLISP and GCL, but blows up in > SBCL. I must be missing something very basic, so if anyone could > supply guidance, I would appreciate it. > Apparently, the issue is that after evaluating an (in-package "blah") > (defpackage "FOO") using an implementation-defined list of packages. SBCL's implementation-defined list is empty; other Lisp implementations use different defaults. For example, here's the result of evaluating "(package-use-list (make-package (gensym)))" in several implementations: CLISP: LispWorks Linux 5.0.1: Allegro CL 8.0: SBCL: OpenMCL 1.0: As you can see, to get predictable results across implementations with > ; in: COMMON-LISP:LAMBDA COMMON-LISP:NIL > I could import the common-lisp[-usr] package, but since no such it's more conformant with the Common Lisp standard. COMMON-LISP is a standard package. Zach You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||