私はここの指示に従いました:http://xach.livejournal.com/278047.htmlそしてそれらを動作させました。私はプロジェクトテストを呼び出したので、次のようなtest.lispファイルがあります。
;;;; test.lisp
(in-package #:test)
;;; "test" goes here. Hacks and glory await!
(defun foo ()
(format t "hello from EMAIL-DB package~%"))
(ql:quickload "test")を実行すると、次のようになります。 The variable FOO is unbound.
(in-package#:test)行をコメントアウトすると、ロード時にfooがバインド解除されなくなります。これは、関数fooが構文的に問題ないことを示しています。
私は何が間違っているのですか?(ql:quickload "test')を使用するとfooがバインドされないのはなぜですか?
これが私のパッケージファイルです:
;;;; package.lisp
(defpackage #:test
(:use #:hunchentoot))
そして私のtest.asdファイル:
;;;; test.asd
(asdf:defsystem #:test
:serial t
:depends-on (#:hunchentoot
#:cl-who
#:postmodern)
:components ((:file "package")
(:file "test")))