From: jumperjack42
Subject: Issue with defpackage on cmucl running hunchentoot
Date: 
Message-ID: <1168146086.024700.108180@s34g2000cwa.googlegroups.com>
Folks I am fairly new to lisp and am trying to define package that uses
hunchentoot in the folowing way

(defpackage :trial :use :cl :hunchentoot)

after this I try to compile the file using (compile-file <filename>) I
get the following error.
(compile-file "trial.lisp")


; Python version 1.1, VM version Intel x86 on 06 JAN 07 08:40:55 pm.
; Compiling: /home/ppthirum/youscribe/trial/tutorial.lisp 06 JAN 07
08:40:23 pm

(during macroexpansion)
Bogus DEFPACKAGE option: :USE
Error flushed ...

; Compilation unit aborted.

; Compilation aborted after 0:00:00.

Before running this I already loaded the hunchentoot package using
(asdf:oos 'asdf:load-op :hunchentoot)

Could someone please help me understand what is going on. I am using
cmucl

From: Bill Atkins
Subject: Re: Issue with defpackage on cmucl running hunchentoot
Date: 
Message-ID: <not-a-real-email-49EFDA.00152007012007@host86-26-113-128.not-set-yet.ntli.net>
In article <························@s34g2000cwa.googlegroups.com>,
 "jumperjack42" <···············@gmail.com> wrote:

> Folks I am fairly new to lisp and am trying to define package that uses
> hunchentoot in the folowing way
> 
> (defpackage :trial :use :cl :hunchentoot)

(defpackage :trial (:use :cl :hunchentoot))
From: ·······@gmail.com
Subject: Re: Issue with defpackage on cmucl running hunchentoot
Date: 
Message-ID: <1168190538.688392.46460@51g2000cwl.googlegroups.com>
jumperjack42 wrote:

> (defpackage :trial :use :cl :hunchentoot)

Wrong syntax, as was already pointed out.

> Before running this I already loaded the hunchentoot package using
> (asdf:oos 'asdf:load-op :hunchentoot)

Just wanted to note that this might reveal a common misconception
amongst "newbies": With ASDF you load a "system" (or you might want to
call it a "library" if you like), you don't load a package.  A package
is a first class object which you can create and modify in ANSI Common
Lisp.  By pure coincidence (or rather by convention) the system and the
package have the same name, and after loading the system the package
has also been created.

HTH,
Edi.