1 ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
6 ;;;; Purpose: Imports standard MOP symbols into KMRCL
7 ;;;; Programmer: Kevin M. Rosenberg
8 ;;;; Date Started: Apr 2003
10 ;;;; $Id: mop.lisp,v 1.1 2003/04/29 00:26:21 kevin Exp $
12 ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg
14 ;;;; KMRCL users are granted the rights to distribute and use this software
15 ;;;; as governed by the terms of the Lisp Lesser GNU Public License
16 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
17 ;;;; *************************************************************************
19 ;;; This file imports MOP symbols into KMR-MOP packages and then
20 ;;; re-exports them to hide differences in MOP implementations.
22 (in-package #:cl-user)
25 (eval-when (:compile-toplevel :load-toplevel :execute)
26 (if (find-package 'sb-mop)
27 (pushnew :kmr-sbcl-mop cl:*features*)
28 (pushnew :kmr-sbcl-pcl cl:*features*)))
31 (eval-when (:compile-toplevel :load-toplevel :execute)
32 (if (find-package 'mop)
33 (pushnew :kmr-cmucl-mop cl:*features*)
34 (pushnew :kmr-cmucl-pcl cl:*features*)))
40 #+kmr-sbcl-mop #:sb-mop
46 #:class-of #:class-name #:class-slots #:find-class
48 #:slot-definition-name #:finalize-inheritance
49 #:standard-direct-slot-definition
50 #:standard-effective-slot-definition #:validate-superclass
51 #:direct-slot-definition-class #:compute-effective-slot-definition
52 #:compute-effective-slot-definition-initargs
53 #:slot-value-using-class
54 #:class-prototype #:generic-function-method-class #:intern-eql-specializer
55 #:make-method-lambda #:generic-function-lambda-list
59 (in-package #:kmr-mop)
61 (eval-when (:compile-toplevel :load-toplevel :execute)
64 '(excl::compute-effective-slot-definition-initargs)
66 '(clos::compute-effective-slot-definition-initargs)
68 '(sb-pcl::compute-effective-slot-definition-initargs)
70 '(sb-pcl:class-of sb-pcl:class-name sb-pcl:class-slots sb-pcl:find-class
71 sb-pcl::standard-class
72 sb-pcl:slot-definition-name sb-pcl::finalize-inheritance
73 sb-pcl::standard-direct-slot-definition
74 sb-pcl::standard-effective-slot-definition sb-pcl::validate-superclass
75 sb-pcl::direct-slot-definition-class sb-pcl::compute-effective-slot-definition
76 sb-pcl::compute-effective-slot-definition-initargs
77 sb-pcl::slot-value-using-class
78 sb-pcl:class-prototype sb-pcl:generic-function-method-class sb-pcl:intern-eql-specializer
79 sb-pcl:make-method-lambda sb-pcl:generic-function-lambda-list
80 sb-pcl::compute-slots)
82 '(pcl::compute-effective-slot-definition-initargs)
84 '(pcl:class-of pcl:class-name pcl:class-slots pcl:find-class pcl::standard-class
85 pcl::slot-definition-name pcl:finalize-inheritance
86 pcl::standard-direct-slot-definition pcl::standard-effective-slot-definition
87 pcl::validate-superclass pcl:direct-slot-definition-class
88 pcl:compute-effective-slot-definition
89 pcl::compute-effective-slot-definition-initargs
90 pcl::slot-value-using-class
91 pcl:class-prototype pcl:generic-function-method-class pcl:intern-eql-specializer
92 pcl:make-method-lambda pcl:generic-function-lambda-list
95 '(clos::compute-effective-slot-definition-initargs
97 ;; note: make-method-lambda is not fbound
103 (eval-when (:compile-toplevel :load-toplevel :execute)
104 (if (find-package 'sb-mop)
105 (setq cl:*features* (delete :kmr-sbcl-mop cl:*features*))
106 (setq cl:*features* (delete :kmr-sbcl-pcl cl:*features*))))
109 (eval-when (:compile-toplevel :load-toplevel :execute)
110 (if (find-package 'mop)
111 (setq cl:*features* (delete :kmr-cmucl-mop cl:*features*))
112 (setq cl:*features* (delete :kmr-cmucl-pcl cl:*features*))))
114 (eval-when (:compile-toplevel :load-toplevel :execute)
115 (when (>= (length (generic-function-lambda-list
116 (ensure-generic-function
117 'compute-effective-slot-definition)))
119 (pushnew :kmr-named-cesd cl:*features*)))