r11442: add compute-cached-value slot option
[hyperobject.git] / package.lisp
1 ;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
4 ;;;;
5 ;;;; Name:          package.lisp
6 ;;;; Purpose:       Package definition for hyperobject package
7 ;;;; Programmer:    Kevin M. Rosenberg
8 ;;;; Date Started:  Apr 2000
9 ;;;;
10 ;;;; $Id$
11 ;;;;
12 ;;;; This file is Copyright (c) 2000-2003 by Kevin M. Rosenberg
13 ;;;; *************************************************************************
14
15 (in-package #:cl-user)
16
17 #+sbcl
18 (eval-when (:compile-toplevel :load-toplevel :execute)
19   (if (find-package 'sb-mop)
20       (pushnew :kmr-sbcl-mop cl:*features*)
21       (pushnew :kmr-sbcl-pcl cl:*features*)))
22
23 #+cmu
24 (eval-when (:compile-toplevel :load-toplevel :execute)
25   (if (eq (symbol-package 'pcl:find-class)
26           (find-package 'common-lisp))
27       (pushnew :kmr-cmucl-mop cl:*features*)
28       (pushnew :kmr-cmucl-pcl cl:*features*)))
29
30
31 (defpackage #:hyperobject
32   (:nicknames #:ho)
33   (:use #:common-lisp #:kmrcl
34         #+kmr-sbcl-mop #:sb-mop
35         #+kmr-cmucl-mop #:mop
36         #+allegro #:mop
37         #+lispworks #:clos
38         #+scl #:clos
39         #+openmcl #:openmcl-mop)
40   (:export
41    #:package
42    #:hyperobject
43    #:hyperobject-class
44    #:hyperobject-class-user-name
45    #:load-all-subobjects
46    #:view
47    #:view-subobjects
48    #:fmt-comma-integer
49    #:processed-queued-definitions
50    #:all-subobjects
51    #:subobjects
52    ))
53
54 (defpackage #:hyperobject-user
55   (:nicknames #:ho-user)
56   (:use #:hyperobject #:cl #:cl-user))
57
58
59 (eval-when (:compile-toplevel :load-toplevel :execute)
60   (shadowing-import
61    #+allegro
62    '(excl::compute-effective-slot-definition-initargs)
63    #+lispworks
64    '(clos::compute-effective-slot-definition-initargs)
65    #+kmr-sbcl-mop
66    '(sb-pcl::compute-effective-slot-definition-initargs)
67    #+kmr-sbcl-pcl
68    '(sb-pcl:class-of sb-pcl:class-name sb-pcl:class-slots sb-pcl:find-class
69      sb-pcl::standard-class
70      sb-pcl:slot-definition-name sb-pcl::finalize-inheritance
71      sb-pcl::standard-direct-slot-definition
72      sb-pcl::standard-effective-slot-definition sb-pcl::validate-superclass
73      sb-pcl::direct-slot-definition-class sb-pcl::compute-effective-slot-definition
74      sb-pcl::compute-effective-slot-definition-initargs
75      sb-pcl::slot-value-using-class
76      sb-pcl:slot-definition-type
77      sb-pcl:class-prototype sb-pcl:generic-function-method-class sb-pcl:intern-eql-specializer
78      sb-pcl:make-method-lambda sb-pcl:generic-function-lambda-list
79      sb-pcl::class-precedence-list)
80    #+kmr-cmucl-mop
81    '(pcl::compute-effective-slot-definition-initargs)
82    #+kmr-cmucl-pcl
83    '(pcl:class-of  pcl:class-name pcl:class-slots pcl:find-class pcl::standard-class
84      pcl::slot-definition-name pcl:finalize-inheritance
85      pcl::standard-direct-slot-definition pcl::standard-effective-slot-definition
86      pcl::validate-superclass pcl:direct-slot-definition-class
87      pcl:compute-effective-slot-definition
88      pcl::compute-effective-slot-definition-initargs
89      pcl::slot-value-using-class
90      pcl:class-prototype pcl:generic-function-method-class pcl:intern-eql-specializer
91      pcl:make-method-lambda pcl:generic-function-lambda-list
92      pcl:slot-definition-type
93      pcl::class-precedence-list)
94    #+clisp
95    '(clos:class-name clos:class-slots clos:find-class clos::standard-class
96      clos::slot-definition-name clos:finalize-inheritance
97      clos::standard-direct-slot-definition clos::standard-effective-slot-definition
98      clos::validate-superclass clos:direct-slot-definition-class
99      clos:effective-slot-definition-class
100      clos:slot-definition-type
101      clos:compute-effective-slot-definition
102      clos::compute-effective-slot-definition-initargs
103      clos::slot-value-using-class
104      clos:class-prototype clos:generic-function-method-class clos:intern-eql-specializer
105      clos:generic-function-lambda-list
106      clos::class-precedence-list)
107    #+scl
108    '(clos::compute-effective-slot-definition-initargs
109      clos::class-prototype
110      clos:slot-definition-type
111      ;; note: make-method-lambda is not fbound
112      )
113
114    :hyperobject))
115
116 #+sbcl
117 (eval-when (:compile-toplevel :load-toplevel :execute)
118   (if (find-package 'sb-mop)
119       (setq cl:*features* (delete :kmr-sbcl-mop cl:*features*))
120       (setq cl:*features* (delete :kmr-sbcl-pcl cl:*features*))))
121
122 #+cmu
123 (eval-when (:compile-toplevel :load-toplevel :execute)
124   (if (find-package 'mop)
125       (setq cl:*features* (delete :kmr-cmucl-mop cl:*features*))
126       (setq cl:*features* (delete :kmr-cmucl-pcl cl:*features*))))