[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

The packages strike again



Can someone suggest what I do wrong?

1) I startup MCL+CLIM
2) I evaluate the following buffer
and I immediately get the error below...

The buffer contains:
---------------------------------------------------------------------
;;; -*- Package: USER; Syntax: Common-Lisp; Base: 10 -*-

(defpackage :manexQC-REPORT 
  (:use :clim-user :user))


(in-package :manexQC-REPORT)

(defun test () nil)
(defvar *current-y-position* 40)

---------------------------------------------------------------------


The error I get is:

---------------------------------------------------------------------
Welcome to Macintosh Common Lisp Version 2.0p1!
? 
> Error: Unbound variable: TEST
> While executing: COMMON-LISP:SYMBOL-VALUE
> Type Command-/ to continue, Command-. to abort.
> If continued: Retry getting the value of TEST.
See the Restarts
1 > 

---------------------------------------------------------------------


I though that creating a package that uses :clim-user and :user would allow
me to use all external symbols from these packages, ie all CL, CLIM,
mcl-specific extensions (in user) and clim-specific extensions (clim-user).

It seems that defun is not recognized...

If I comment out that line, reboot lisp and re-evaluate the buffer, I get
(for the defvar):

---------------------------------------------------------------------
Welcome to Macintosh Common Lisp Version 2.0p1!
? 
> Error: Unbound variable: *CURRENT-Y-POSITION*
> While executing: COMMON-LISP:SYMBOL-VALUE
> Type Command-/ to continue, Command-. to abort.
> If continued: Retry getting the value of *CURRENT-Y-POSITION*.
See the Restarts
1 > 

Thanks for any help

Vincent

--
Keunen Vincent
R&D, Software Engineer
keunen@montefiore.ulg.ac.be
tel: +32 41 407282
fax: +32 41 481170