Google Groups Home
Help | Sign in
packaged version and SBCL
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Nate Blaylock  
View profile
 More options May 4 2007, 2:47 pm
From: Nate Blaylock <blaylock.n...@gmail.com>
Date: Fri, 04 May 2007 18:47:14 -0000
Local: Fri, May 4 2007 2:47 pm
Subject: packaged version and SBCL
I had trouble loading the packaged version of KM (2.0.53) with SBCL on
an Intel Mac.  For some reason, SBCL needed a :use '(:common-lisp)
argument when doing (make-package :km) --- otherwise, it didn't seem
to be able to see any of the :common-lisp symbols (the first error it
threw was not being able to find KM::DEFVAR).

Pete, if you think this is worth patching, it looks like there are 3
places which have (make-package :km) (2 are in the cut-and-paste
scripts for dividing up the source files).  Switching these to (make-
package :km :use '(:common-lisp)) worked for me.

nate


    Reply to author    Forward  
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.
Pete  
View profile
 More options May 10 2007, 2:33 pm
From: Pete <peter.e.cl...@boeing.com>
Date: Thu, 10 May 2007 11:33:41 -0700
Local: Thurs, May 10 2007 2:33 pm
Subject: Re: packaged version and SBCL

Thanks, Nate, your tweak seems to work fine. It'll be in the next
release (2.0.56). Best wishes! Pete

On May 4, 11:47 am, Nate Blaylock <blaylock.n...@gmail.com> wrote:


    Reply to author    Forward  
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.
Francis Leboutte  
View profile
 More options May 11 2007, 4:41 am
From: Francis Leboutte <f.lebou...@algo.be>
Date: Fri, 11 May 2007 10:41:53 +0200
Local: Fri, May 11 2007 4:41 am
Subject: Re: packaged version and SBCL
Hello,

In Common Lisp, packages are a way to organize
names of function in independent namespaces, to
avoid collisions between names in different libraries.

The COMMON-LISP package contains the functions
defined in standard CL. To use them directly in
the KM package, you have to tell the KM package
should inherit the exported symbols of the COMMON-LISP package.

A common way to handle the packages is to have a
separate file packages.lisp (to be loaded first)
where you put all your packages definitions. For example:

(defpackage :km
   (:use :common-lisp))

This packages.lisp file must be loaded before the other files.

This way, it is enough to put an (in-package :km)
form in the beginning of each file of the KM program.

More about packages:
http://www.gigamonkeys.com/book/programming-in-the-large-packages-and...
http://cl-cookbook.sourceforge.net/packages.html

Francis

Le 10/05/2007 20:33, Pete écrivait :


    Reply to author    Forward  
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.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google