r3292: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 4 Nov 2002 19:19:04 +0000 (19:19 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 4 Nov 2002 19:19:04 +0000 (19:19 +0000)
classes.lisp
debian/changelog

index b82410b78fef2f7365285651d6cf4bdb79bbdb06..3e40a53527b421662c6f8b11fe77bb3454e12f79 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id: classes.lisp,v 1.9 2002/11/04 18:02:13 kevin Exp $
+;;;; $Id: classes.lisp,v 1.10 2002/11/04 19:19:04 kevin Exp $
 ;;;;
 ;;;; This file, part of UMLisp, is
 ;;;;    Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D.
 (in-package :umlisp)
 (declaim (optimize (speed 3) (safety 1) (compilation-speed 0) (debug 3)))
 
-(defclass umlsclass ()
+(defclass umlsclass (hyperobject)
   ()
   (:metaclass hyperobject-class)
   (:documentation "Parent class of all UMLS objects. It is based on the HYPEROBJECT-CLASS metaclass that provides object printing functions."))
 
 
-(defmethod print-object ((obj umlsclass) (s stream))
-  (print-unreadable-object (obj s :type t :identity t)
-    (let ((fmt (make-instance 'kmrcl::textformat)))
-      (apply #'format 
-            s (funcall (kmrcl::obj-data-fmtstr fmt) obj)
-            (multiple-value-list 
-             (funcall (funcall (kmrcl::obj-data-value-func fmt) obj) obj))))))
-
-
 (defclass usrl (umlsclass)
   ((sab :type string :initarg :sab :reader sab)
    (srl :type integer :initarg :srl :reader srl))
 (eval-when (:compile-toplevel :load-toplevel :execute)
 (defun english-term-p (obj)
   "Returns two values: T/NIL if term is english and T/NIL if obj is a TERM"
-  (if (eq (kmrcl::hyperobject-class-name (kmrcl::hyperobject-class-of obj)) 'uterm)
+  (if (eq (hyperobject::portable-class-name (hyperobject::portable-class-of obj)) 'uterm)
       (values (string-equal (lat obj) "ENG") t)
     (values nil nil))))
 
index 47e1a86e8de3d6833c7ef894d354d975d8bd2179..12e7cfc7dc0e9c04bd90c34030118dd96ef8ad8f 100644 (file)
@@ -1,3 +1,9 @@
+cl-umlisp (1.2.1-2) unstable; urgency=low
+
+  * Fix print-object
+
+ -- Kevin M. Rosenberg <kmr@debian.org>  Mon,  4 Nov 2002 11:49:29 -0700
+
 cl-umlisp (1.2-1) unstable; urgency=low
 
   * New upstream