src/class-output.lisp: Leave `*instance-class*' unbound at top-level.
[sod] / src / package.lisp
index 60da8ea..61285db 100644 (file)
@@ -7,7 +7,7 @@
 
 ;;;----- Licensing notice ---------------------------------------------------
 ;;;
-;;; This file is part of the Sensble Object Design, an object system for C.
+;;; This file is part of the Sensible Object Design, an object system for C.
 ;;;
 ;;; SOD is free software; you can redistribute it and/or modify
 ;;; it under the terms of the GNU General Public License as published by
 ;;; along with SOD; if not, write to the Free Software Foundation,
 ;;; Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-(cl:defpackage #:sod
-  (:use #:common-lisp
-       #:sod-utilities
-       #:sod-parser))
+(eval-when (:compile-toplevel :load-toplevel :execute)
+  (handler-bind ((warning #'muffle-warning))
+    (cl:defpackage #:sod
+      (:use #:common-lisp
+           #:sod-utilities
+           #:sod-parser))
+    (cl:defpackage #:sod-user
+      (:use #:common-lisp
+           #:sod-utilities
+           #:optparse
+           #:sod-parser
+           #:sod))))
+
+(cl:in-package #:sod)
 
 ;;;----- That's all, folks --------------------------------------------------