X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=base-class.lisp;h=24c24a386c07133b644bd1e4e84f6078f2d79b32;hb=1dcc7087f7e716725abd3e0decc8e33d6308ae1a;hp=4c0315661cf8c06f18cea17e3405a204d4d81faa;hpb=18558405db4d6d5ca2a47aac32fb13958430b189;p=hyperobject.git diff --git a/base-class.lisp b/base-class.lisp index 4c03156..24c24a3 100644 --- a/base-class.lisp +++ b/base-class.lisp @@ -7,24 +7,25 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2000 ;;;; -;;;; $Id: base-class.lisp,v 1.1 2002/11/25 02:10:38 kevin Exp $ +;;;; $Id: base-class.lisp,v 1.4 2002/12/13 08:25:45 kevin Exp $ ;;;; ;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg ;;;; ************************************************************************* (in-package :hyperobject) +(eval-when (:compile-toplevel :execute) + (declaim (optimize (speed 2) (safety 2) (compilation-speed 0) (debug 2)))) + (defclass hyperobject () () (:metaclass hyperobject-class) (:description "Basic hyperobject class")) - (defmethod print-object ((obj hyperobject) (s stream)) (print-unreadable-object (obj s :type t :identity t) - (let ((fmt (make-instance 'hyperobject::textformat))) - (apply #'format - s (funcall (obj-data-fmtstr fmt) obj) + (let ((view (get-category-view obj :compact-text))) + (apply #'format s (obj-data-fmtstr view) (multiple-value-list - (funcall (funcall (obj-data-value-func fmt) obj) obj)))))) + (funcall (obj-data-value-func view) obj))))))