IN-PACKAGE uses a string designator.
authorOlof-Joachim Frahm <olof@macrolet.net>
Tue, 21 May 2013 19:04:18 +0000 (21:04 +0200)
committerOlof-Joachim Frahm <olof@macrolet.net>
Thu, 6 Jun 2013 22:19:47 +0000 (00:19 +0200)
src/package.lisp
tests/package.lisp

index b74fbaa..c7251b6 100644 (file)
@@ -73,9 +73,9 @@
 
 (defvar *package* *common-lisp-package*)
 
-(defmacro in-package (package-designator)
+(defmacro in-package (string-designator)
   `(eval-when-compile
-     (setq *package* (find-package-or-fail ,package-designator))))
+     (setq *package* (find-package-or-fail ',string-designator))))
 
 ;; This function is used internally to initialize the CL package
 ;; with the symbols built during bootstrap.
index 814057b..c9b6782 100644 (file)
@@ -23,3 +23,5 @@
           (member baz symbols)))))
 
 (test (member 'car (find-all-symbols (string 'car))))
+
+(test (eq (eval '(in-package #:cl)) (find-package '#:cl)))