r5401: *** empty log message ***
[hyperobject.git] / base-class.lisp
index 24c24a386c07133b644bd1e4e84f6078f2d79b32..ad7920fbcbf11e69ebff69401e8826490ce36619 100644 (file)
@@ -7,14 +7,12 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id: base-class.lisp,v 1.4 2002/12/13 08:25:45 kevin Exp $
+;;;; $Id: base-class.lisp,v 1.11 2003/07/14 04:10:02 kevin Exp $
 ;;;;
-;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg
+;;;; This file is Copyright (c) 2000-2003 by Kevin M. Rosenberg
 ;;;; *************************************************************************
 
-(in-package :hyperobject)
-(eval-when (:compile-toplevel :execute)
-  (declaim (optimize (speed 2) (safety 2) (compilation-speed 0) (debug 2))))
+(in-package #:hyperobject)
 
 
 (defclass hyperobject ()
@@ -23,9 +21,7 @@
   (:description "Basic hyperobject class"))
 
 (defmethod print-object ((obj hyperobject) (s stream))
-  (print-unreadable-object (obj s :type t :identity t)
-    (let ((view (get-category-view obj :compact-text)))
-      (apply #'format s (obj-data-fmtstr view)
-            (multiple-value-list 
-             (funcall (obj-data-value-func view) obj))))))
+  (print-unreadable-object (obj s :type t :identity nil)
+    (funcall (obj-data-printer (get-view-id obj :compact-text))
+            obj s nil)))