X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=mop.lisp;h=ca59a1c31eaf82f5a7f83ad5d20412a86595dde5;hb=61c28767dc6071b3f8edf0834aeab94eb40c3352;hp=613031565164a14fbadedc754242473ae0cc6ebf;hpb=5fe53d4fd03d9339c06850dd54dcbcae10b3678e;p=hyperobject.git diff --git a/mop.lisp b/mop.lisp index 6130315..ca59a1c 100644 --- a/mop.lisp +++ b/mop.lisp @@ -11,7 +11,7 @@ ;;;; in Text, HTML, and XML formats. This includes hyperlinking ;;;; capability and sub-objects. ;;;; -;;;; $Id: mop.lisp,v 1.28 2003/03/29 20:22:37 kevin Exp $ +;;;; $Id: mop.lisp,v 1.34 2003/03/29 20:58:09 kevin Exp $ ;;;; ;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg ;;;; @@ -282,7 +282,7 @@ (,reader ,@keys))))) #+(or sbcl scl cmu) -(defun ensure-lazy-reader (class slot-name reader &rest reader-keys) +(defun ensure-lazy-reader (class-name slot-name reader &rest reader-keys) (let ((keys nil) (gf (ensure-generic-function 'slot-unbound))) (dolist (key reader-keys) @@ -299,9 +299,11 @@ (add-method gf (apply #'make-instance (generic-function-method-class gf) - ':specializers (list t class (intern-eql-specializer slot-name)) + ':specializers (list (class-of (find-class class-name)) + (find-class class-name) + (intern-eql-specializer slot-name)) ':lambda-list '(the-class the-instance the-slot-name) - ':function `(function ,method-lambda) + ':function (compile nil method-lambda) init-args-values))))) (defun finalize-subobjects (cl)