X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=mop.lisp;h=b5a5ef1ef3dd30f2860cfe46fcba24dcc8e603c2;hb=e7029a2475adb009ed1b80d400429dcbd35f34ae;hp=995b368db06dd650d9a97b66ab85522cc9916057;hpb=5ef3317938a27c4fe0341ebe1ccc3fb453901cba;p=kmrcl.git diff --git a/mop.lisp b/mop.lisp index 995b368..b5a5ef1 100644 --- a/mop.lisp +++ b/mop.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2003 ;;;; -;;;; $Id: mop.lisp,v 1.2 2003/04/29 03:50:42 kevin Exp $ +;;;; $Id: mop.lisp,v 1.5 2003/04/29 05:02:21 kevin Exp $ ;;;; ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -41,20 +41,7 @@ #+kmr-cmucl-mop #:mop #+allegro #:mop #+lispworks #:clos - #+scl #:clos) - (:export - #:class-of #:class-name #:class-slots #:find-class - #:standard-class - #:slot-definition-name #:finalize-inheritance - #:standard-direct-slot-definition - #:standard-effective-slot-definition #:validate-superclass - #:direct-slot-definition-class #:compute-effective-slot-definition - #:compute-effective-slot-definition-initargs - #:slot-value-using-class - #:class-prototype #:generic-function-method-class #:intern-eql-specializer - #:make-method-lambda #:generic-function-lambda-list - #:compute-slots) - ) + #+scl #:clos)) (in-package #:kmr-mop) @@ -96,32 +83,40 @@ clos::class-prototype ;; note: make-method-lambda is not fbound ) - '#:kmr-mop)) - - -#+sbcl -(eval-when (:compile-toplevel :load-toplevel :execute) + '#:kmr-mop) + + (export '(#:class-of #:class-name #:class-slots #:find-class + #:standard-class + #:slot-definition-name #:finalize-inheritance + #:standard-direct-slot-definition + #:standard-effective-slot-definition #:validate-superclass + #:direct-slot-definition-class #:compute-effective-slot-definition + #:compute-effective-slot-definition-initargs + #:slot-value-using-class + #:class-prototype #:generic-function-method-class #:intern-eql-specializer + #:make-method-lambda #:generic-function-lambda-list + #:compute-slots)) + + #+sbcl (if (find-package 'sb-mop) (setq cl:*features* (delete :kmr-sbcl-mop cl:*features*)) - (setq cl:*features* (delete :kmr-sbcl-pcl cl:*features*)))) - -#+cmu -(eval-when (:compile-toplevel :load-toplevel :execute) + (setq cl:*features* (delete :kmr-sbcl-pcl cl:*features*))) + + #+cmu (if (find-package 'mop) (setq cl:*features* (delete :kmr-cmucl-mop cl:*features*)) - (setq cl:*features* (delete :kmr-cmucl-pcl cl:*features*)))) - -(eval-when (:compile-toplevel :load-toplevel :execute) + (setq cl:*features* (delete :kmr-cmucl-pcl cl:*features*))) + (when (>= (length (generic-function-lambda-list (ensure-generic-function 'compute-effective-slot-definition))) 3) - (pushnew :kmr-normal-cesd cl:*features*))) - -(eval-when (:compile-toplevel :load-toplevel :execute) + (pushnew :kmr-normal-cesd cl:*features*)) + (when (>= (length (generic-function-lambda-list - (ensure-generic-function - 'direct-slot-definition-class))) + (ensure-generic-function + 'direct-slot-definition-class))) 3) - (pushnew :kmr-normal-dsdc cl:*features*))) + (pushnew :kmr-normal-dsdc cl:*features*)) + ) ;; eval-when