;;;; in Text, HTML, and XML formats. This includes hyperlinking
;;;; capability and sub-objects.
;;;;
-;;;; $Id: mop.lisp,v 1.52 2003/04/15 05:18:22 kevin Exp $
+;;;; $Id: mop.lisp,v 1.54 2003/04/16 19:56:33 kevin Exp $
;;;;
;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg
;;;;
(defclass hyperlink ()
((name :type symbol :initform nil :initarg :name :reader name)
- (lookup :type function :initform nil :initarg :lookup :reader lookup)
+ (lookup :type (or function symbol) :initform nil :initarg :lookup :reader lookup)
(link-parameters :type list :initform nil :initarg :link-parameters
:reader link-parameters)))
(defun intern-eql-specializer (slot)
`(eql ,slot))
-#+(or sbcl cmu lispworks)
+#+(or sbcl lispworks)
(defun ensure-lazy-reader (class-name slot-name reader &rest reader-keys)
(let ((keys nil)
(gf (ensure-generic-function 'slot-unbound)))
nil
(cdr subobj-def)))))
(unless (eq (lookup subobject) t)
- #-(or sbcl cmu lispworks)
+ #-(or sbcl lispworks)
(eval
`(hyperobject::def-lazy-reader ,(name-class subobject)
,(name-slot subobject) ,(lookup subobject)
,@(lookup-keys subobject)))
- #+(or sbcl cmu lispworks)
+ #+(or sbcl lispworks)
(apply #'ensure-lazy-reader
(name-class subobject) (name-slot subobject) (lookup subobject) (lookup-keys subobject))
)