r4302: *** empty log message ***
[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: package.lisp,v 1.40 2003/03/31 19:22:22 kevin Exp $
11 ;;;;
12 ;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg
13 ;;;; *************************************************************************
14
15 (eval-when (:compile-toplevel :execute)
16   (declaim (optimize (speed 2) (safety 2) (compilation-speed 0) (debug 2))))
17
18 (in-package :cl-user)
19
20 #+sbcl
21 (eval-when (:compile-toplevel :load-toplevel :execute)
22   (if (find-package 'sb-mop)
23       (pushnew :kmr-sbcl-mop cl:*features*)
24       (pushnew :kmr-sbcl-pcl cl:*features*)))
25
26
27 (defpackage #:hyperobject
28   (:nicknames #:ho)
29   (:use #:common-lisp #:kmrcl
30         #+kmr-sbcl-mop #:sb-mop
31         #+allegro #:mop
32         #+lispworks #:clos)
33   (:export
34    #:package
35    #:hyperobject
36    #:hyperobject-class
37    #:hyperobject-class-user-name
38    #:load-all-subobjects
39    #:view
40    #:fmt-comma-integer
41    #:processed-queued-definitions
42    ))
43
44 (defpackage #:hyperobject-user
45   (:nicknames #:ho-user)
46   (:use #:hyperobject #:cl #:cl-user))
47
48
49 (eval-when (:compile-toplevel :load-toplevel :execute)
50   (shadowing-import
51    #+allegro
52    '(excl::compute-effective-slot-definition-initargs)
53    #+lispworks
54    '(clos::compute-effective-slot-definition-initargs)
55    #+kmr-sbcl-mop 
56    '(sb-pcl::compute-effective-slot-definition-initargs)
57    #+kmr-sbcl-pcl
58    '(sb-pcl:class-of sb-pcl:class-name sb-pcl:class-slots sb-pcl:find-class
59      sb-pcl::standard-class
60      sb-pcl:slot-definition-name sb-pcl::finalize-inheritance
61      sb-pcl::standard-direct-slot-definition
62      sb-pcl::standard-effective-slot-definition sb-pcl::validate-superclass
63      sb-pcl::direct-slot-definition-class sb-pcl::compute-effective-slot-definition
64      sb-pcl::compute-effective-slot-definition-initargs
65      sb-pcl::slot-value-using-class
66      sb-pcl:class-prototype sb-pcl:generic-function-method-class sb-pcl:intern-eql-specializer
67      sb-pcl:make-method-lambda)
68   #+cmu
69   '(pcl:class-of  pcl:class-name pcl:class-slots pcl:find-class pcl::standard-class
70     pcl::slot-definition-name pcl:finalize-inheritance
71     pcl::standard-direct-slot-definition pcl::standard-effective-slot-definition
72     pcl::validate-superclass pcl:direct-slot-definition-class
73     pcl:compute-effective-slot-definition
74     pcl::compute-effective-slot-definition-initargs
75     pcl::slot-value-using-class
76     pcl:class-prototype pcl:generic-function-method-class pcl:intern-eql-specializer
77     pcl:make-method-lambda)
78   #+scl
79   '(clos:class-slots clos::standard-class
80     clos::slot-definition-name clos:finalize-inheritance
81     clos::standard-direct-slot-definition clos::standard-effective-slot-definition
82     clos::validate-superclass clos:direct-slot-definition-class
83     clos:compute-effective-slot-definition
84     clos::compute-effective-slot-definition-initargs
85     clos::slot-value-using-class
86     clos::class-prototype clos:generic-function-method-class
87     clos:intern-eql-specializer clos:make-method-lambda)
88   
89    :hyperobject))
90
91 #+sbcl
92 (eval-when (:compile-toplevel :load-toplevel :execute)
93   (if (find-package 'sb-mop)
94       (setq cl:*features* (delete :kmr-sbcl-mop cl:*features*))
95       (setq cl:*features* (delete :kmr-sbcl-pcl cl:*features*))))
96
97