From: John Gillespie
Subject: CLOS under GCL 2.1?
Date: 
Message-ID: <3qi0vr$sup@mark.ucdavis.edu>
I can't sort out if CLOS is part of GCL 2.1 as suggested in the FAQ
(for AKCL) and I'm being stupid (likely, as this is my first crack at
using CLOS) or whether I have to load it or PCL to get an object
system.  Using clisp under linux I simply typed (use-package "CLOS")
and began working my way through Lawless and Miller.  Is is in GCL?
How do I get access, if it is?

Thanks

john

From: Martin Cracauer
Subject: Re: CLOS under GCL 2.1?
Date: 
Message-ID: <1995Jun1.111024.14294@wavehh.hanse.de>
····@josquin.ucdavis.edu (John Gillespie) writes:

>I can't sort out if CLOS is part of GCL 2.1 as suggested in the FAQ
>(for AKCL) and I'm being stupid (likely, as this is my first crack at
>using CLOS) or whether I have to load it or PCL to get an object
>system.  Using clisp under linux I simply typed (use-package "CLOS")
>and began working my way through Lawless and Miller.  Is is in GCL?
>How do I get access, if it is?

The distribution area contains a file pcl-gcl-2.1.tgz.

Works for me.
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <········@wavehh.hanse.de>. No NeXTMail, please.
 Norderstedt/Hamburg, Germany. Fax +49 40 522 85 36. This is a 
 private address. At (netless) work programming in data analysis.
From: Gary D. Duzan
Subject: Re: CLOS under GCL 2.1?
Date: 
Message-ID: <3ql6ec$mmq@sundog.tiac.net>
In article <·····················@wavehh.hanse.de>,
Martin Cracauer <········@wavehh.hanse.de> wrote:
=>····@josquin.ucdavis.edu (John Gillespie) writes:
=>
=>>I can't sort out if CLOS is part of GCL 2.1 as suggested in the FAQ
=>>(for AKCL) and I'm being stupid (likely, as this is my first crack at
=>>using CLOS) or whether I have to load it or PCL to get an object
=>>system.  Using clisp under linux I simply typed (use-package "CLOS")
=>>and began working my way through Lawless and Miller.  Is is in GCL?
=>>How do I get access, if it is?
=>
=>The distribution area contains a file pcl-gcl-2.1.tgz.
=>
=>Works for me.

   I have this, but have never used it. However, I did check on
this and got:

>(list-all-packages)
(#<"WALKER" package> #<"ITERATE" package> #<"PCL" package>
 #<"SLOT-ACCESSOR-NAME" package> #<"TK" package> #<"SLOOP" package>
 #<"COMPILER" package> #<"SYSTEM" package> #<"KEYWORD" package>
 #<"USER" package> #<"LISP" package>)

>(use-package "CLOS")

Error: There is no package with the name CLOS.

   What this really means is beyond me, since I haven't looked into
objects under Lisp yet.

                                      Gary D. Duzan
                         Humble Practitioner of the Computer Arts
From: Dave Seaman
Subject: Re: CLOS under GCL 2.1?
Date: 
Message-ID: <3qlf1j$h5b@seaman.cc.purdue.edu>
In article <··········@sundog.tiac.net>,
Gary D. Duzan <····@wheel.tiac.net> wrote:
>   I have this, but have never used it. However, I did check on
>this and got:
>
>>(list-all-packages)
>(#<"WALKER" package> #<"ITERATE" package> #<"PCL" package>
> #<"SLOT-ACCESSOR-NAME" package> #<"TK" package> #<"SLOOP" package>
> #<"COMPILER" package> #<"SYSTEM" package> #<"KEYWORD" package>
> #<"USER" package> #<"LISP" package>)
>
>>(use-package "CLOS")
>
>Error: There is no package with the name CLOS.
>
>   What this really means is beyond me, since I haven't looked into
>objects under Lisp yet.

It means that "CLOS" is not one of the packages that you see listed
when you do a (list-all-packages) in this implementation of LISP.
However, there is a "PCL" package, and that is the one you need:

----------------------------------
>(use-package "PCL")
T
 
>(defclass sample-class () ())
#<Standard-Class SAMPLE-CLASS 21727114>
 
>
----------------------------------

You may also use the keyword form 

	(use-package :pcl) 

instead of 

	(use-package "PCL")

as described in CLtL 2.  Some LISP implementations include CLOS as part
of the common-lisp package along with the rest of the standard language
features, instead of placing it in a separate package called "CLOS" or
anything else.  There is nothing magical about (use-package "CLOS").

Dave Seaman
From: John Gillespie
Subject: Re: CLOS under GCL 2.1?
Date: 
Message-ID: <3qlhka$dc9@mark.ucdavis.edu>
Martin Cracauer (········@wavehh.hanse.de) wrote:
: ····@josquin.ucdavis.edu (John Gillespie) writes:

: >I can't sort out if CLOS is part of GCL 2.1 as suggested in the FAQ
: >(for AKCL) and I'm being stupid (likely, as this is my first crack at
: >using CLOS) or whether I have to load it or PCL to get an object
: >system.  Using clisp under linux I simply typed (use-package "CLOS")
: >and began working my way through Lawless and Miller.  Is is in GCL?
: >How do I get access, if it is?

: The distribution area contains a file pcl-gcl-2.1.tgz.

: Works for me.
: -- 
: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
: Martin Cracauer <········@wavehh.hanse.de>. No NeXTMail, please.
:  Norderstedt/Hamburg, Germany. Fax +49 40 522 85 36. This is a 
:  private address. At (netless) work programming in data analysis.

Thanks for the suggestion: gcl 2.1 & pcl compile and work fine on my
linux system.