/[cmucl]/src/pcl/std-class.lisp
ViewVC logotype

Log of /src/pcl/std-class.lisp

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Tag:

Revision 1.85 - (view) (annotate) - [select for diffs]
Fri Mar 19 15:19:03 2010 UTC (4 years ago) by rtoy
Branch: MAIN
CVS Tags: GIT-CONVERSION, HEAD, RELEASE_20b, cross-sol-x86-2010-12-20, cross-sol-x86-base, cross-sol-x86-merged, cross-sparc-branch-base, post-merge-intl-branch, release-20b-pre1, release-20b-pre2, snapshot-2010-04, snapshot-2010-05, snapshot-2010-06, snapshot-2010-07, snapshot-2010-08, snapshot-2010-11, snapshot-2010-12, snapshot-2011-01, snapshot-2011-02, snapshot-2011-03, snapshot-2011-04, snapshot-2011-06, snapshot-2011-07, snapshot-2011-09, sparc-tramp-assem-2010-07-19, sparc-tramp-assem-base
Branch point for: RELEASE-20B-BRANCH, cross-sol-x86-branch, cross-sparc-branch, sparc-tramp-assem-branch
Changes since 1.84: +2 -1 lines
Diff to previous 1.84 , to selected 1.13
Merge intl-branch 2010-03-18 to HEAD.  To build, you need to use
boot-2010-02-1 as the bootstrap file.  You should probably also use
the new -P option for build.sh to generate and update the po files
while building.

Revision 1.84.16.1 - (view) (annotate) - [select for diffs]
Thu Feb 25 20:34:57 2010 UTC (4 years, 1 month ago) by rtoy
Branch: intl-2-branch
Changes since 1.84: +2 -1 lines
Diff to previous 1.84 , to next main 1.85 , to selected 1.13
Restart internalization work.  This new branch starts with code from
the intl-branch on date 2010-02-12 18:00:00+0500.  This version works
and

LANG=en@piglatin bin/lisp

works (once the piglatin translation is added).

Revision 1.84.14.1 - (view) (annotate) - [select for diffs]
Mon Feb 8 17:15:53 2010 UTC (4 years, 2 months ago) by rtoy
Branch: intl-branch
CVS Tags: intl-branch-2010-03-18-1300, intl-branch-working-2010-02-11-1000, intl-branch-working-2010-02-19-1000
Changes since 1.84: +2 -1 lines
Diff to previous 1.84 , to next main 1.85 , to selected 1.13
Add (intl:textdomain "cmucl") to the files to set the textdomain.

Revision 1.82.4.1.2.1 - (view) (annotate) - [select for diffs]
Wed Mar 18 15:37:29 2009 UTC (5 years, 1 month ago) by rtoy
Branch: unicode-utf16-extfmt-branch
CVS Tags: unicode-snapshot-2009-05, unicode-snapshot-2009-06, unicode-utf16-extfmt-2009-03-27, unicode-utf16-extfmt-2009-06-11
Changes since 1.82.4.1: +1 -3 lines
Diff to previous 1.82.4.1 , to next main 1.82.4.2 , to selected 1.13
Sync to utf16 branch, tag unicode-utf16-sync-label-2009-03-16.

Revision 1.82.4.2 - (view) (annotate) - [select for diffs]
Mon Mar 16 21:10:56 2009 UTC (5 years, 1 month ago) by rtoy
Branch: unicode-utf16-branch
CVS Tags: unicode-utf16-char-support-2009-03-25, unicode-utf16-char-support-2009-03-26, unicode-utf16-sync-label-2009-03-16
Changes since 1.82.4.1: +1 -3 lines
Diff to previous 1.82.4.1 , to branch point 1.82 , to next main 1.85 , to selected 1.13
Sync to CVS HEAD, tag label-2009-03-16.

But don't sync Config.FreeBSD_gencgc, Config.x86_freebsd,
FreeBSD-os.c, and FreeBSD-os.h.  Let Alex sync those later.

The result seems to work as expected on Solaris and x86/linux.
Darwin (ppc or x86) untested.

Revision 1.84 - (view) (annotate) - [select for diffs]
Tue Jan 6 18:17:50 2009 UTC (5 years, 3 months ago) by rtoy
Branch: MAIN
CVS Tags: RELEASE_19f, RELEASE_20a, amd64-dd-start, intl-2-branch-base, intl-branch-base, label-2009-03-16, label-2009-03-25, merge-with-19f, merged-unicode-utf16-extfmt-2009-06-11, portable-clx-base, portable-clx-import-2009-06-16, pre-merge-intl-branch, release-19f-base, release-19f-pre1, release-20a-base, release-20a-pre1, snapshot-2009-01, snapshot-2009-02, snapshot-2009-04, snapshot-2009-05, snapshot-2009-07, snapshot-2009-08, snapshot-2009-11, snapshot-2009-12, snapshot-2010-01, snapshot-2010-02, snapshot-2010-03, unicode-string-buffer-base, unicode-string-buffer-impl-base
Branch point for: RELEASE-19F-BRANCH, RELEASE-20A-BRANCH, amd64-dd-branch, intl-2-branch, intl-branch, portable-clx-branch, unicode-string-buffer-branch, unicode-string-buffer-impl-branch
Changes since 1.83: +1 -3 lines
Diff to previous 1.83 , to selected 1.13
Move defvar of *ALLOW-FUNNY-SLOT-NAMES* from std-class.lisp to
slots.lisp to get rid of an undefined variable warning in slots.lisp.

Revision 1.82.4.1 - (view) (annotate) - [select for diffs]
Thu Jun 19 03:30:45 2008 UTC (5 years, 9 months ago) by rtoy
Branch: unicode-utf16-branch
CVS Tags: unicode-utf16-extfmts-pre-sync-2008-11, unicode-utf16-extfmts-sync-2008-12, unicode-utf16-sync-2008-07, unicode-utf16-sync-2008-09, unicode-utf16-sync-2008-11, unicode-utf16-sync-2008-12
Branch point for: unicode-utf16-extfmt-branch
Changes since 1.82: +9 -3 lines
Diff to previous 1.82 , to selected 1.13
Merge changes from HEAD to the unicode-utf16 branch.

Revision 1.83 - (view) (annotate) - [select for diffs]
Sat May 24 14:41:39 2008 UTC (5 years, 10 months ago) by rtoy
Branch: MAIN
CVS Tags: merge-sse2-packed, snapshot-2008-06, snapshot-2008-07, snapshot-2008-08, snapshot-2008-09, snapshot-2008-10, snapshot-2008-11, snapshot-2008-12, sse2-base, sse2-checkpoint-2008-10-01, sse2-merge-with-2008-10, sse2-merge-with-2008-11, sse2-packed-2008-11-12, sse2-packed-base
Branch point for: sse2-branch, sse2-packed-branch
Changes since 1.82: +9 -3 lines
Diff to previous 1.82 , to selected 1.13
Fix issue with slot-value-using-class and
get-accessor-method-function.

See cmucl-imp, 2008/04/03, PCL bug?.  Bug and link to solution
provided by Hans Hubner.  Solution based on sbcl patch 0.8.14.27.

Here's the test case:

(in-package :cl-user)

(use-package :pcl)

(defclass test-metaclass (standard-class)
  ())

(defmethod validate-superclass ((sub test-metaclass) (super standard-class))
  t)

(defmethod (setf slot-value-using-class) :before (newval (class test-metaclass) object slotd)
  (print 'setf-slot-value-using-class-before))

(defmethod (setf slot-value-using-class) :after (newval (class test-metaclass) object slotd)
  (print 'setf-slot-value-using-class-after))

(defclass test-class ()
  (slot)
  (:metaclass test-metaclass))

Revision 1.82 - (view) (annotate) - [select for diffs]
Thu Nov 30 15:49:30 2006 UTC (7 years, 4 months ago) by rtoy
Branch: MAIN
CVS Tags: pre-telent-clx, release-19e, release-19e-base, release-19e-pre1, release-19e-pre2, snapshot-2006-12, snapshot-2007-01, snapshot-2007-02, snapshot-2007-03, snapshot-2007-04, snapshot-2007-05, snapshot-2007-06, snapshot-2007-07, snapshot-2007-08, snapshot-2007-09, snapshot-2007-10, snapshot-2007-11, snapshot-2007-12, snapshot-2008-01, snapshot-2008-02, snapshot-2008-03, snapshot-2008-04, snapshot-2008-05, unicode-utf16-base, unicode-utf16-string-support
Branch point for: release-19e-branch, unicode-utf16-branch
Changes since 1.81: +4 -2 lines
Diff to previous 1.81 , to selected 1.13
Apply Martin Rydstrom's fix for forward-referenced classes.  This
fixes a bug in compiling recent McCLIM versions.

Revision 1.81 - (view) (annotate) - [select for diffs]
Mon Oct 30 01:54:28 2006 UTC (7 years, 5 months ago) by rtoy
Branch: MAIN
Changes since 1.80: +3 -1 lines
Diff to previous 1.80 , to selected 1.13
Handle forward-referenced classes.  This is needed to build McCLIM
correctly.  (Patch taken from SBCL.)

Revision 1.75.2.1 - (view) (annotate) - [select for diffs]
Mon Dec 19 01:10:22 2005 UTC (8 years, 3 months ago) by rtoy
Branch: ppc_gencgc_branch
CVS Tags: ppc_gencgc_snap_2005-12-17, ppc_gencgc_snap_2006-01-06
Changes since 1.75: +62 -19 lines
Diff to previous 1.75 , to next main 1.85 , to selected 1.13
Merge code from main branch of 2005-12-17 to ppc gencgc branch.  Still
doesn't work of course.

Revision 1.80 - (view) (annotate) - [select for diffs]
Thu Jul 7 16:44:27 2005 UTC (8 years, 9 months ago) by rtoy
Branch: MAIN
CVS Tags: double-double-array-base, double-double-array-checkpoint, double-double-base, double-double-init-%make-sparc, double-double-init-checkpoint-1, double-double-init-ppc, double-double-init-sparc, double-double-init-sparc-2, double-double-init-x86, double-double-irrat-end, double-double-irrat-start, double-double-reader-base, double-double-reader-checkpoint-1, double-double-sparc-checkpoint-1, release-19c, release-19c-base, release-19c-pre1, release-19d, release-19d-base, release-19d-pre1, release-19d-pre2, snapshot-2005-07, snapshot-2005-08, snapshot-2005-09, snapshot-2005-10, snapshot-2005-11, snapshot-2005-12, snapshot-2006-01, snapshot-2006-02, snapshot-2006-03, snapshot-2006-04, snapshot-2006-05, snapshot-2006-06, snapshot-2006-07, snapshot-2006-08, snapshot-2006-09, snapshot-2006-10, snapshot-2006-11
Branch point for: double-double-array-branch, double-double-branch, double-double-reader-branch, release-19c-branch, release-19d-branch
Changes since 1.79: +4 -1 lines
Diff to previous 1.79 , to selected 1.13
Fix for update-dependent on gfs, from Gerd Moellman, 2005-06-26:

This is for one of Bruno's bug reports.  For example,

(defclass upd-history ()
  ((history :initform ())))

(defmethod update-dependent ((gf generic-function) (history upd-history)
			     &rest args)
  (push args (slot-value history 'history)))

(defun history-event-list (history)
  (mapcar (lambda (event)
	    (mapcar (lambda (x)
		      (if (typep x 'method)
			  (list 'method (mapcar #'class-name
						(method-specializers x)))
			  x))
		    event))
	  (reverse (slot-value history 'history))))

(let ((hist (make-instance 'upd-history)))
   (defgeneric upd0 (x))
   (add-dependent #'upd0 hist)
   (defmethod upd0 ((x integer)))
   (history-event-list hist))
=>  ((add-method (method (integer)))))

But, instead of the above expected result, it produces

=>  (nil (add-method (method (integer)))))

The nil is from a reinitialize-instance of the gf, which is triggered
by load-defmethod calling ensure-generic-function, which in turn calls
ensure-generic-function-using-class on the existing gf, which finally
calls reinitialize-instance.

I'm not 100% sure if this is correct or not.  My reading of CLHS/MOP
is that this is at least not forbidden.  Opinions?

	* src/pcl/methods.lisp (real-add-method, update-gf-dependents):
	New function.
	(real-add-method, real-remove-method): Call it.
	(reinitialize-instance) <:around standard-generic-function>:
	Update dependent objects.

	* src/pcl/std-class.lisp (update-dependent): New default method.

Revision 1.79 - (view) (annotate) - [select for diffs]
Mon Jun 20 13:03:21 2005 UTC (8 years, 9 months ago) by rtoy
Branch: MAIN
Changes since 1.78: +9 -2 lines
Diff to previous 1.78 , to selected 1.13
From Gerd, cmucl-imp, 2005-06-18:

(progn
  (defclass foo92b (foo92a) ((s :initarg :s)))
  (defclass foo92a () ())
  (let ((x (make-instance 'foo92b :s 5)) (update-counter 0))
    (defclass foo92b (foo92a) ((s) (s1) (s2))) ; still subclass of foo92a
    (slot-value x 's)
    (defmethod update-instance-for-redefined-class ((object foo92b) added-slots discarded-slots property-list &rest initargs)
      (incf update-counter))
    (make-instances-obsolete 'foo92a)
    (slot-value x 's)
    update-counter))
Expected: 1
Got:      0

[Taken from clisp's clos.tst]


	* src/pcl/std-class.lisp (force-cache-flushes): Use new state
	:obsolete if some superclass has been obsoleted.

	* src/pcl/cache.lisp (check-wrapper-validity): If state is
	:invalid, recurse because force-cache-flushes can change the
	state.

Revision 1.78 - (view) (annotate) - [select for diffs]
Tue May 31 18:10:05 2005 UTC (8 years, 10 months ago) by rtoy
Branch: MAIN
Changes since 1.77: +40 -17 lines
Diff to previous 1.77 , to selected 1.13
Fix for compute-slots, from Gerd, cmucl-imp, 2005-05-28.  The test
case reported by Bruno is:

#+CMU (use-package "PCL")
(defclass b (a) ())
(defmethod compute-slots ((class (eql (find-class 'b))))
  (append (call-next-method)
          (list (make-instance 'standard-effective-slot-definition
                  :name 'y
                  :allocation :instance))))
(defclass a () ((x :allocation :class)))
;; A should now have a shared slot, X, and a local slot, Y.
(mapcar #'slot-definition-location (class-slots (find-class 'b)))

Instead of an error about no matching method, we get

((X . PCL::..SLOT-UNBOUND..) 0)

Revision 1.77 - (view) (annotate) - [select for diffs]
Mon May 23 16:10:24 2005 UTC (8 years, 10 months ago) by rtoy
Branch: MAIN
CVS Tags: release-19b-base, release-19b-pre1, release-19b-pre2, snapshot-2005-06
Branch point for: release-19b-branch
Changes since 1.76: +9 -1 lines
Diff to previous 1.76 , to selected 1.13
Patch from Gerd Moellmann, cmucl-imp, 2005-05-21:

    ;; Shared slot becomes local.
    ;; 4.3.6.1.: "The value of a slot that is specified as shared in the old class
    ;;            and as local in the new class is retained."
    (multiple-value-bind (value condition)
	(ignore-errors
	  (defclass foo85a () ((size :initarg :size :initform 1 :allocation :class)))
	  (defclass foo85b (foo85a) ())
	  (setq i (make-instance 'foo85b))
	  (defclass foo85a () ((size :initarg :size :initform 2) (other)))
	  (slot-value i 'size))
      (list value (type-of condition)))
    Expected: (1 NULL)

Revision 1.76 - (view) (annotate) - [select for diffs]
Mon May 23 15:38:20 2005 UTC (8 years, 10 months ago) by rtoy
Branch: MAIN
Changes since 1.75: +4 -2 lines
Diff to previous 1.75 , to selected 1.13
Patch from Gerd Moellmann, cmucl-imp, 2005-05-21:

    This is also for something Bruno reported:

    The MOP p. 47 says about ensure-class-using-class:
       "The :metaclass argument is a class metaobject class or a class
	metaobject class name."
    However, CMUCL 19a does not support passing a class here.

Revision 1.75 - (view) (annotate) - [select for diffs]
Thu Jan 27 14:45:58 2005 UTC (9 years, 2 months ago) by rtoy
Branch: MAIN
CVS Tags: ppc_gencgc_snap_2005-05-14, snapshot-2005-02, snapshot-2005-03, snapshot-2005-04, snapshot-2005-05
Branch point for: ppc_gencgc_branch
Changes since 1.74: +4 -4 lines
Diff to previous 1.74 , to selected 1.13
Add AMOP style custom slot allocation.

Patch from Sverker Wiberg, cmucl-imp, 2005-01-18.

Revision 1.74 - (view) (annotate) - [select for diffs]
Sat Sep 25 22:09:29 2004 UTC (9 years, 6 months ago) by rtoy
Branch: MAIN
CVS Tags: snapshot-2004-10, snapshot-2004-11, snapshot-2004-12, snapshot-2005-01
Changes since 1.73: +5 -2 lines
Diff to previous 1.73 , to selected 1.13
When creating an eql specializer, tell the type system aboout this eql
specializer.

Fixes a bug reported by Bruno Haible, cmucl-imp, 2004-09-15.

Revision 1.72.2.1 - (view) (annotate) - [select for diffs]
Fri Jul 16 14:06:24 2004 UTC (9 years, 9 months ago) by rtoy
Branch: release-19a-branch
CVS Tags: release-19a
Changes since 1.72: +5 -2 lines
Diff to previous 1.72 , to next main 1.85 , to selected 1.13
Merge fixes from HEAD to fix the issue with PCL prematurely creating
instances of conditions.

Revision 1.73 - (view) (annotate) - [select for diffs]
Fri Jul 9 22:00:30 2004 UTC (9 years, 9 months ago) by rtoy
Branch: MAIN
CVS Tags: prm-before-macosx-merge-tag, snapshot-2004-08, snapshot-2004-09
Changes since 1.72: +5 -2 lines
Diff to previous 1.72 , to selected 1.13
Initialization of condition class metaobjects no longer creates an
instance of the condition.  (Bug reported on sbcl-help.  Fix stolen
from sbcl.)

Revision 1.72 - (view) (annotate) - [select for diffs]
Tue Apr 6 20:44:03 2004 UTC (10 years ago) by rtoy
Branch: MAIN
CVS Tags: amd64-merge-start, release-19a-base, release-19a-pre1, release-19a-pre2, release-19a-pre3, snapshot-2004-05, snapshot-2004-06, snapshot-2004-07
Branch point for: release-19a-branch
Changes since 1.71: +1 -2 lines
Diff to previous 1.71 , to selected 1.13
Add support for source location recording, from Helmut Eller on
cmucl-imp:

    The patch below adds a somewhat general mechanism to the get the
    "current location".  So every macro that wants to record the
    source location, can insert a call to SOURCE-LOCATION in the
    generated code and safe the result in a appropriate place.
    SOURCE-LOCATION is a compiler-macro and returns a quoted struct
    with the source info.

    The patch adds the definition for SOURCE-LOCATION some
    modifications for the defclass, defgeneric and defmethod macros.
    Classes, generic functions and methods have already a "source"
    slot and the result of SOURCE-LOCATION is just stored into that
    slot.  (The source slot contains currently only the *loadpath*,
    which is is not very useful, if the fasl file is in a different
    directory than the source file.)

Revision 1.71 - (view) (annotate) - [select for diffs]
Wed Oct 29 12:14:35 2003 UTC (10 years, 5 months ago) by gerd
Branch: MAIN
CVS Tags: mod-arith-base, snapshot-2003-11, snapshot-2003-12, snapshot-2004-04
Branch point for: mod-arith-branch
Changes since 1.70: +5 -5 lines
Diff to previous 1.70 , to selected 1.13
	Suppress slot access and gf-call optimizations for method
	parameters that are being assigned to in the method body.
	Reported by Hans Chalupsky on cmucl-imp.

	* src/pcl/boot.lisp (method-parameter): New function, extracted
	from make-pv-call.
	(assigned-method-params): New function.
	(make-method-lambda-internal): Call it to disable optimizations
	on method parameters being assigned to.

	* src/pcl/method-slot-access-optimization.lisp
	(get-param/class-to-optimize): Use new function method-parameter.
	* src/pcl/gf-call-optimization.lisp (make-pv-call): Ditto.

	* src/pcl/std-class.lisp (ensure-class-using-class): Don't setq
	a method parameter.

Revision 1.70 - (view) (annotate) - [select for diffs]
Sun Jun 15 14:06:26 2003 UTC (10 years, 10 months ago) by gerd
Branch: MAIN
CVS Tags: dynamic-extent-base, lisp-executable-base, snapshot-2003-10, sparc_gencgc, sparc_gencgc_merge
Branch point for: dynamic-extent, lisp-executable, sparc_gencgc_branch
Changes since 1.69: +2 -2 lines
Diff to previous 1.69 , to selected 1.13
	SLOT-VALUE, (SETF SLOT-VALUE), SLOT-BOUNDP, SLOT-MAKUNBOUND not
	returning values specified by the standard when
	SLOT-MISSING/SLOT-UNBOUND are called and return.  Found by Paul
	Dietz.

	* src/pcl/std-class.lisp (compute-effective-slot-definition):
	Return slot-unbound's primary value.

	* src/pcl/slots.lisp (slot-value): Return slot-missing's primary
	value.
	(set-slot-value): Always return the new value.
	(slot-boundp): Return a boolean equivalent of slot-missing's
	primary value.
	(slot-makunbound): Always return the instance.
	(slot-value-using-class): Return slot-unbound's primary value.
	(slot-unbound-internal): Likewise.

	* src/pcl/slots-boot.lisp (ensure-accessor): Return slot-missing's
	primary value for slot-value, a boolean equivalent of its primary
	value for slot-boundp, and always return the value for setf.
	(accessor-set-slot-value): Always return the new value.
	(make-optimized-std-reader-method-function): Return slot-unbound's
	primary value.
	(make-optimized-std-slot-value-using-class-method-function)
	(make-internal-reader-method-function): Likewise.

	* src/pcl/method-slot-access-optimization.lisp
	(inline-slot-unbound): Return slot-unbound's primary value.

Revision 1.69 - (view) (annotate) - [select for diffs]
Tue Jun 10 09:20:43 2003 UTC (10 years, 10 months ago) by gerd
Branch: MAIN
Changes since 1.68: +10 -2 lines
Diff to previous 1.68 , to selected 1.13
	Class redefinition and proper class names.  Found by Paul Dietz.

	* src/pcl/std-class.lisp (ensure-class): Redefine a class
	only if the specified name is the proper name of the class.

Revision 1.68 - (view) (annotate) - [select for diffs]
Wed May 28 08:50:39 2003 UTC (10 years, 10 months ago) by gerd
Branch: MAIN
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 , to selected 1.13
	Structure slot names can be any symbol.  Found by Paul Dietz.

	* src/pcl/std-class.lisp (*allow-funny-slot-names*): Renamed
	from *allow-keyword-slot-names*.

	* src/pcl/methods.lisp (legal-slot-name-p): Allow any symbol
	if *allow-funny-slot-names* is true.
	(shared-initialize): Print the value of the :slot-name initarg.

	* src/code/defstruct.lisp (parse-1-dsd): Treat nil as symbol
	when used as a slot name.

Revision 1.67 - (view) (annotate) - [select for diffs]
Sun May 25 14:33:49 2003 UTC (10 years, 10 months ago) by gerd
Branch: MAIN
Changes since 1.66: +7 -4 lines
Diff to previous 1.66 , to selected 1.13
	CLHS 7.6.5 keyword argument checking for calls to generic
	functions.  Found by Paul Dietz, of course.  This also includes
	some minor code cleanup and a fix for a bug caused by a typo.

	* src-gf/pcl/std-class.lisp
	(compute-effective-slot-definition-initargs):
	Reformatted to make it readable on a tty.

	* src-gf/pcl/methods.lisp (set-condition-svuc-method): Fix a typo.

	* src-gf/pcl/low.lisp (parse-lambda-list): Add an ignore
	declaration.

	* src-gf/pcl/init.lisp (valid-initargs): Use method-lambda-list*.

	* src-gf/pcl/dfun.lisp (use-caching-dfun-p): Use
	generic-function-methods*.
	(use-constant-value-dfun-p): Ditto.
	(use-dispatch-dfun-p): Don't use dispatching dfuns when we must
	check keyword arguments according to CLHS 7.6.5, because this
	computes emfs for sets methods that aren't applicable together in
	the usual sense; this screws up emf keyword argument checking, of
	course.
	(make-initial-dfun): Use gf-arg-info*.
	(update-dfun): Use generic-function-name*.
	(final-accessor-dfun-type, make-accessor-table)
	(compute-applicable-methods-using-types)
	(compute-applicable-methods-using-types): Likewise.

	* src-gf/pcl/combin.lisp (standard-compute-effective-method):
	Don't use the single-call-method optimization if we must
	check keyword arguments according to CLHS 7.6.5.
	(callable-generator-for-emf): Rewritten to add a keyword
	argument check to the emf.
	(emfs-must-check-applicable-keywords-p)
	(compute-applicable-keywords, check-applicable-keywords):
	New functions.
	(odd-number-of-keyword-arguments, invalid-keyword-argument):
	Moved here from boot.lisp.
	(make-effective-method-lambda): Add a check-applicable-keywords
	form to the emf, if appropriate.
	(memf-test-converter, memf-code-converter)
	(memf-constant-converter): Deal with check-applicable-keywords.
	(*applicable-methods*): New variable.
	(make-callable): Bind it.
	(make-emf-name): Use generic-function-name*.

	* src/pcl/braid.lisp (ensure-non-standard-class): Remove
	an used branch.

	* src/pcl/boot.lisp (*make-method-lambda-gf-name*): Removed.
	(expand-defmethod): Don't bind it.
	(make-method-lambda-internal): Don't add &key to the method
	function's lambda-list if the gf has &key.
	(bind-args): Rewritten.  Don't do keyword checking as this is
	done in emfs now.
	(get-key-arg, get-key-arg1): Simplified; do less checking.
	(generic-function-name*, generic-function-methods*)
	(gf-arg-info*, method-lambda-list*): New functions.
	(check-method-arg-info): Use them.
	(gf-lambda-list-from-method): New function.
	(gf-lambda-list): Use it.  Don't add &allow-other-keys to a
	gf's lambda-list if a method has &key.
	(get-generic-function-info): Use gf-arg-info*.
	(parse-specialized-lambda-list): Add an ignore declaration.
	(odd-number-of-keyword-arguments, invalid-keyword-argument):
	Moved to combin.lisp.
	(check-generic-function-lambda-list): Remove &more stuff
	because that's checked elsewhere now (and Python can even
	tell it is).

	* src-gf/pcl/ctor.lisp (install-optimized-constructor): Remove
	an unmatched ).

Revision 1.66 - (view) (annotate) - [select for diffs]
Tue May 20 18:39:36 2003 UTC (10 years, 10 months ago) by gerd
Branch: MAIN
Changes since 1.65: +8 -1 lines
Diff to previous 1.65 , to selected 1.13
	Store user-specified slot names in DEFSTRUCT-SLOT-DESCRIPTIONs,
	which is necessary for conforming SLOT-EXISTS-P and
	MAKE-LOAD-FORM-SAVING-SLOTS.  To bootstrap, using pmai's
	build scripts:

	1. Copy boot10.lisp to target:bootstrap.lisp and do a full
	   build.  Choose the CLOBBER-IT restart when asked
	   (for an unknown reason, it doesn't work to do this
	   programatically.)

	2. Leave the bootstrap file where it is and do a full build
	   with the Lisp produced in step 1.

	3. Remove the bootstrap file and do another full build.

	* src/bootfiles/18e/boot10.lisp: New file.

	* src-dsd/code/defstruct.lisp (defstruct-slot-description):
	Rename slot %name to name.
	(dsd-%name): New function.
	(dsd-name): Function removed.
	(parse-1-dsd): Set dsd-name to the slot symbol.

	* src-dsd/pcl/std-class.lisp (*allow-keyword-slot-names*): New
	variable.
	(initialize-internal-slot-functions) <around
	structure-effective-slot-definition>: New method binding
	*allow-keyword-slot-names* to true.

	* src-dsd/pcl/methods.lisp (legal-slot-name-p): Allow keywords
	if *allow-keyword-slot-names* is true.

Revision 1.65 - (view) (annotate) - [select for diffs]
Sun May 11 11:30:34 2003 UTC (10 years, 11 months ago) by gerd
Branch: MAIN
Changes since 1.64: +12 -6 lines
Diff to previous 1.64 , to selected 1.13
	More SLOT-VALUE etc. on conditions.

	* src/pcl/slots.lisp (slot-value-using-class)
	(setf slot-boundp-using-class) <condition-class>: New methods.

	* src/pcl/std-class.lisp (initialize-internal-slot-functions): Use
	slot-name->class-table.
	(shared-initialize): Call update-pv-table-cache-info.
	(compute-slots) <around condition-class>: New method.

	* src/pcl/slots-boot.lisp (ensure-accessor): Use
	slot-name->class-table.
	(get-optimized-std-accessor-method-function)
	(get-optimized-std-slot-value-using-class-method-function):
	Handle condition classes.

	* src/pcl/methods.lisp (*condition-slot-value-using-class-method*)
	(*condition-setf-slot-value-using-class-method*)
	(*condition-slot-boundp-using-class-method*): New vars.
	(condition-svuc-method, set-condition-svuc-method): New functions.
	(update-std-or-str-methods): Handle conditions.

	* src/pcl/generic-functions.lisp (condition-class-p): New gf.

	* src/pcl/dfun.lisp (make-accessor-table): Use
	slot-name->class-table.

	* src/pcl/defs.lisp (*the-condition-class*): New var.
	(slot-name->class-table): New function.
	(condition): New class.
	(*early-class-predicates*): Add condition-class-p.

	* src/pcl/braid.lisp (bootstrap-meta-braid)
	(bootstrap-initialize-class): Add condition-class stuff.
	(bootstrap-make-slot-definitions): Simplified.
	(bootstrap-make-slot-definition): Use slot-name->class-table.

Revision 1.64 - (view) (annotate) - [select for diffs]
Sat May 10 20:27:23 2003 UTC (10 years, 11 months ago) by gerd
Branch: MAIN
Changes since 1.63: +21 -1 lines
Diff to previous 1.63 , to selected 1.13
	Make condition slots readable with SLOT-VALUE.

	* src/pcl/std-class.lisp (compute-effective-slot-definition)
	<condition-class>: New method.

	* src/pcl/slots.lisp (slot-makunbound-using-class)
	<condition-class>: New method.

Revision 1.63 - (view) (annotate) - [select for diffs]
Sat May 10 19:09:01 2003 UTC (10 years, 11 months ago) by gerd
Branch: MAIN
Changes since 1.62: +28 -5 lines
Diff to previous 1.62 , to selected 1.13
	SLOT-EXISTS-P is supposed to work on conditions.  Detected
	by Paul Dietz.

	* src/pcl/std-class.lisp (class-direct-slots, class-slots)
	<condition-class>: Remove methods.
	(shared-initialize) <condition-class>: Initialize direct
	and effective slots.
	(direct-slot-definition-class, effective-slot-definition-class)
	(finalize-inheritance, shared-initialize) <condition-class>:
	New methods.

	* src/pcl/braid.lisp (ensure-non-standard-class): Pass slot
	initargs to ensure-class for condition classes.

	* src/pcl/defs.lisp (condition-class): Inherit from slot-class.
	(condition-slot-definition, condition-direct-slot-definition)
	(condition-effective-slot-definition): New classes.

Revision 1.62 - (view) (annotate) - [select for diffs]
Thu May 8 17:29:03 2003 UTC (10 years, 11 months ago) by gerd
Branch: MAIN
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 , to selected 1.13
	* src/pcl/std-class.lisp (update-shared-slot-values): Test
	if shared slot is still unbound.  Thanks to Christophe
	Rhodes.

Revision 1.61 - (view) (annotate) - [select for diffs]
Sun May 4 13:11:20 2003 UTC (10 years, 11 months ago) by gerd
Branch: MAIN
Changes since 1.60: +13 -13 lines
Diff to previous 1.60 , to selected 1.13
	Code cleanup.  Use EXTENSIONS package to reduce clutter.

	* src/pcl/defsys.lisp ("PCL", "WALKER"): Use ext.
	* src/pcl/pkg.lisp ("PCL", "WALKER"): Use ext.
	* src/pcl/*.lisp: Remove ext: prefixes.

	* src/pcl/low.lisp (symbolicate*): Renamed from symbolicate.
	* src/pcl/std-class.lisp (shared-initialize):
	* src/pcl/defs.lisp (get-built-in-class-symbol)
	(get-built-in-wrapper-symbol):
	* src/pcl/braid.lisp (initial-classes-and-wrappers)
	(bootstrap-meta-braid): Use symbolicate*.

	* src/pcl/macros.lisp (dolist-carefully): Removed.
	(true, false, zero): Moved to defclass.lisp.
	(printing-random-thing-internal): Removed.
	(printing-random-thing): Removed.
	(rassq): Removed.
	(*keyword-package*): Removed.
	(make-keyword): Removed; import from cl.
	(memq, delq, assq): Macros removed, import from ext.
	(get-declaration): Moved to boot.lisp, where it's used.

	* src/pcl/boot.lisp (get-declaration): Moved here from
	macros.lisp.

	* src/pcl/methods.lisp (named-object-print-function, print-object):
	* src/pcl/low.lisp (print-std-instance):
	* src/pcl/dfun.lisp (print-dfun-info):
	* src/pcl/cache.lisp (print-cache, print-wrapper):
	* src/pcl/boot.lisp (make-early-gf):
	Use print-unreadable-object instead of printing-random-thing.

	* src/pcl/defclass.lisp (true, false, zero): Moved here from
	macros.lisp.

	* src/pcl/methods.lisp (legal-qualifiers-p)
	(legal-specializers-p): Use dolist.

Revision 1.60 - (view) (annotate) - [select for diffs]
Sun May 4 00:37:33 2003 UTC (10 years, 11 months ago) by gerd
Branch: MAIN
Changes since 1.59: +10 -10 lines
Diff to previous 1.59 , to selected 1.13
	Detect odd-length keyword argument lists, invalid keyword
	arguments is methods.  Change lambda-lists of some gfs and methods
	to include &key, or &key &allow-other-keys.  Bugs found by Paul
	Dietz in his test suite.

	* src/pcl/boot.lisp (bind-args): Handle the case that &key is
	in the lambda-list, but no keyword args.
	(get-key-arg1): Additional argument first-time; check for
	invalid keyword arguments, and add number of args when true.
	(get-key-arg): Call get-key-arg1.
	(odd-number-of-keyword-arguments, invalid-keyword-argument):
	New functions.

	* src/pcl/init.lisp (make-instance) <symbol, class>: Add &key.
	(initialize-instance) <slot-object>: Likewise.
	(reinitialize-instance) <slot-object>: Likewise.
	(update-instance-for-different-class): Likewise.
	(update-instance-for-redefined-class): Likewise.
	(shared-initialize) <slot-object>: Likewise.
	* src/pcl/std-class.lisp (change-class): Likewise.
	* src/pcl/slots.lisp (allocate-instance) <standard-class>:
	(allocate-instance) <structure-class>: Likewise.
	* src/pcl/methods.lisp (reinitialize-instance) <standard-method>:
	Likewise.
	* src/pcl/generic-functions.lisp (change-class)
	(allocate-instance, update-instance-for-different-class)
	(update-instance-for-redefined-class): Add &key &allow-other-keys.
	* src/pcl/fsc.lisp (allocate-instance)
	<funcallable-standard-class>: Add &key.

	* src/pcl/std-class.lisp (make-defstruct-allocation-function): Fix
	a paren bug.

Revision 1.59 - (view) (annotate) - [select for diffs]
Sat May 3 14:46:12 2003 UTC (10 years, 11 months ago) by gerd
Branch: MAIN
Changes since 1.58: +11 -14 lines
Diff to previous 1.58 , to selected 1.13
	Make slot locations more intuitive; preserve slot locations of
	inherited slots.  This partially a change from 2002-12-24 that
	made compute-slots compatible with SBCL.

	* src/pcl/std-class.lisp (compute-slots): Map over slots in
	reverse cpl order so that inherited slots are more likely to get
	the same locations as in superclasses.

	* src/pcl/rt/ctor.lisp: Tests changed accordingly.

Revision 1.58 - (view) (annotate) - [select for diffs]
Tue Apr 29 11:57:43 2003 UTC (10 years, 11 months ago) by gerd
Branch: MAIN
Changes since 1.57: +95 -70 lines
Diff to previous 1.57 , to selected 1.13
	Make ALLOCATE-INSTANCE work on structures defined with DEFSTRUCT.
	Detected by Paul Dietz' tests.

	* src/pcl/std-class.lisp (make-defstruct-allocation-function):
	New function.
	(shared-initialize) <structure-class>: Use it.

Revision 1.57 - (view) (annotate) - [select for diffs]
Tue Apr 29 10:33:51 2003 UTC (10 years, 11 months ago) by gerd
Branch: MAIN
Changes since 1.56: +10 -7 lines
Diff to previous 1.56 , to selected 1.13
	Make DIRECT-SLOT-DEFINITION-CLASS and EFFECTIVE-SLOT-DEFINITION-CLASS
	AMOP compliant.  From Kevin Rosenberg on cmucl-imp 2003-04-29.

	* src/pcl/std-class.lisp (direct-slot-definition-class):
	(effective-slot-definition-class): Change methods accordingly.
	(make-direct-slotd): Apply direct-slot-definition-class to
	initargs instead of funcalling it.
	(compute-effective-slot-definition): Likewise for
	effective-slot-definition-class.

	* src/pcl/generic-functions.lisp (direct-slot-definition-class)
	(effective-slot-definition-class): Make initargs a &rest arg.

Revision 1.56 - (view) (annotate) - [select for diffs]
Sat Apr 26 21:24:06 2003 UTC (10 years, 11 months ago) by gerd
Branch: MAIN
CVS Tags: remove_negative_zero_not_zero
Changes since 1.55: +29 -11 lines
Diff to previous 1.55 , to selected 1.13
	ANSI test CLASS-0211B.1.  Initforms of shared slots inherited
	from superclasses.

	* src/pcl/std-class.lisp (update-shared-slot-values): New function.
	(update-class): Call it.
	(shared-initialize): Slightly rewritten.

Revision 1.55 - (view) (annotate) - [select for diffs]
Sat Apr 26 17:35:08 2003 UTC (10 years, 11 months ago) by gerd
Branch: MAIN
Changes since 1.54: +6 -2 lines
Diff to previous 1.54 , to selected 1.13
	Test cases CLASS-REDEFINITION.[12] from Paul Dietz' ANSI tests.

	* src/pcl/std-class.lisp (update-cpl): Force cache flushes if we
	won't reuse the wrapper because there are class slots.

Revision 1.54 - (view) (annotate) - [select for diffs]
Fri Apr 25 17:43:50 2003 UTC (10 years, 11 months ago) by gerd
Branch: MAIN
Changes since 1.53: +18 -16 lines
Diff to previous 1.53 , to selected 1.13
	MOP bug fix for problem with (SETF SLOT-VALUE-USING-CLASS)
	reported by Kevin Rosenberg <kevin@rosenberg.net> on cmucl-imp,
	Tue, 22 Apr 2003 13:28:23 -0600.  There's a test case in
	the thread on cmucl-imp.

	* src/pcl/methods.lisp (update-slot-value-gf-info):
	Moved here from slots-boot.lisp.
	(get-accessor-method-function): Don't pass nil wrappers
	to get-secondary-dispatch-function.  See comment there.
	(update-gf-dfun): Remove unused code.

	* src/pcl/slots-boot.lisp (get-accessor-from-svuc-method-function):
	Move to methods.lisp, where it's used.

	* src/pcl/std-class.lisp (compute-slot-accessor-info): Add
	comment.

	Code cleanup.

	* src/pcl/std-class.lisp (compute-default-initargs): Don't use a
	recursive local function for something that can be done with loop
	in 2 lines.

Revision 1.53 - (view) (annotate) - [select for diffs]
Fri Apr 18 10:06:23 2003 UTC (11 years ago) by gerd
Branch: MAIN
Changes since 1.52: +3 -2 lines
Diff to previous 1.52 , to selected 1.13
	Further fixes for making SUBTYPEP work with forward-referenced
	classes.

	* src/pcl/std-class.lisp (make-preliminary-layout): Map over
	subclasses, updating preliminary cpl info.

	* src/pcl/rt/defclass.lisp (defclass-types.6): New test.

Revision 1.52 - (view) (annotate) - [select for diffs]
Sun Apr 13 11:57:16 2003 UTC (11 years ago) by gerd
Branch: MAIN
Changes since 1.51: +7 -4 lines
Diff to previous 1.51 , to selected 1.13
  	The SEQUENCE-COUNT type was previously used in c:fndb, but since
	C::SEQUENCE-COUNT /= KERNEL::SEQUENCE-COUNT, it was an unknown
	type.  Please read boot4.lisp.

	* src/code/exports.lisp ("KERNEL"): Export sequence-count.

	* src-types/bootfiles/18e/boot4.lisp: New file.


	Make compute-effective-slot-definition AMOP compliant.
	Patch from Kevin Rosenberg.

	* src/pcl/std-class.lisp (compute-slots): Pass slot name
	to compute-effective-slot-definition.
	(compute-slots): Likewise.
	(compute-effective-slot-definition): Add parameter slot-name.

	* src/pcl/generic-functions.lisp (compute-effective-slot-definition):
	Add second parameter slot-name.


	Allow non-keyword keyword names in lambda lists.  This fixes test
	cases STRUCTURE-BOA-TEST-15/[1-8], and FLET.30.

	* src/compiler/node.lisp (arg-info): Accept non-keyword
	keyword names.

	* src/code/type.lisp (key-info): Likewise.


	Fix type system bugs detected by Paul Dietz' test suite
	This is to a large extent a port from SBCL.

	* src/code/type.lisp: Mostly rewritten with code ported from
	SBCL.

	* src/compiler/typetran.lisp (ir1-transform-type-predicate):
	Return nil if type is *empty-type*.
	(source-transform-negation-typep)
	(source-transform-intersection-typep): New functions.
	(source-transform-array-typep): Handle unknown array element types.
	(typep): Add handling of negation and intersection types.

	* src/compiler/srctran.lisp (make-canonical-union-type):
	Simplify, now that #'type-union is smarter.
	(ir1-transform-<-helper): Give up on non-numeric, non-member
	types.

	* src/compiler/checkgen.lisp (type-test-cost): Add a case
	for intersection-type.
	(values-types-asserted): Don't use coerce-to-values, see
	the comment there.

	* src/compiler/array-tran.lisp (array-dimension): Accept
	:maybe as array-type-complexp.

	* src/code/pred.lisp (%%typep): Add handling of
	negation-types and intersection-types.  Change cases of
	hairy-types, union-types, and arrays with unknown element type.

	* src/code/exports.lisp ("KERNEL"): Export negation-type,
	negation-type-type, intersection-type, intersection-type-types.

	* src/code/class.lisp (sealed-class-intersection):
	Return one value.
	(class :simple-intersection): Return one value, return nil in
	the default case.
	(class :complex-subtypep-arg2): New type method.

Revision 1.51 - (view) (annotate) - [select for diffs]
Mon Apr 7 11:13:18 2003 UTC (11 years ago) by gerd
Branch: MAIN
Changes since 1.50: +18 -20 lines
Diff to previous 1.50 , to selected 1.13
	* pcl/std-class.lisp (update-class-can-precede-p): Rewritten.
	(update-slots): Slightly rewritten; don't use the old wrapper if
	the class isn't finalized.

	* pcl/rt/defclass.lisp (defclass-forward-referenced-class.1):
	New test.

Revision 1.50 - (view) (annotate) - [select for diffs]
Sun Apr 6 09:10:09 2003 UTC (11 years ago) by gerd
Branch: MAIN
Changes since 1.49: +61 -24 lines
Diff to previous 1.49 , to selected 1.13
	Fix TYPEP/SUBTYPEP problems with unfinalized and
	forward-referenced classes.

	* pcl/std-class.lisp (class-finalized-p): Method removed.
	(*allow-forward-referenced-classes-in-cpl-p*): New variable.
	(make-preliminary-layout): New function.
	(shared-initialize) <:after std-class>: Call
	make-preliminary-layout.
	(shared-initialize) <:after forward-referenced-class>: New method
	calling make-preliminary-layout.
	(shared-initialize) <:after structure-class>: Set finalized-p slot
	to true.
	(update-slots): Likewise.
	(shared-initialize) <:after condition-class>: Likewise.
	(inform-type-system-about-class): New method for
	forward-referenced classes.
	(class-has-a-forward-referenced-superclass-p): Moved to info.lisp.

	* pcl/cpl.lisp (compute-std-cpl-phase-1): Allow forward-referenced
	classes in the cpl if *allow-forward-referenced-classes-in-cpl-p*
	is true.

	* info.lisp (class-has-a-forward-referenced-superclass-p): Moved
	here from std-class.lisp.

	* pcl/cache.lisp (make-wrapper): Handle forward-referenced
	classes.

	* pcl/braid.lisp (bootstrap-initialize-class): Set the finalized-p
	slot.

	* pcl/defs.lisp (class): Add slot finalized-p.

	* pcl/rt/defclass.lisp (defclass-types.[0-5])
	(defclass-forward-referenced-class.0): New tests.

	Misc fixes.

	* pcl/defclass.lisp (expand-defclass): Remove code papering
	over a potential compiler bug.

	* pcl/macros.lisp (find-class-cell-make-instance-function-keys):
	Removed.
	(setf find-class): Add errorp and environment
	parameters, call (setf kernel::find-class) if new-value is nil.

Revision 1.49 - (view) (annotate) - [select for diffs]
Thu Apr 3 11:40:37 2003 UTC (11 years ago) by gerd
Branch: MAIN
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 , to selected 1.13
	* pcl/std-class.lisp (ensure-class-using-class): Pass initargs
	to change-class.

Revision 1.48 - (view) (annotate) - [select for diffs]
Sun Mar 30 21:17:03 2003 UTC (11 years ago) by gerd
Branch: MAIN
Changes since 1.47: +3 -2 lines
Diff to previous 1.47 , to selected 1.13
	* pcl/std-class.lisp (shared-initialize): Check that reader
	is fboundp, like for the writer.

Revision 1.47 - (view) (annotate) - [select for diffs]
Sun Mar 30 00:48:10 2003 UTC (11 years ago) by gerd
Branch: MAIN
Changes since 1.46: +6 -5 lines
Diff to previous 1.46 , to selected 1.13
	Make classes FIND-CLASSable early, for MOP programming,
	and for compatibility with other Lisps.

	* pcl/std-class.lisp (update-class): (setf find-class) here.
	(shared-initialize) <:after std-class>: Call update-class
	after setting the class predicate.

	Make ENSURE-CLASS-USING-CLASS AMOP compliant.

	* pcl/std-class.lisp (ensure-class, ensure-class-using-class)
	(ensure-class-using-class): Exchange first and second arg for AMOP
	compliance.

	* pcl/generic-functions.lisp (ensure-non-standard-class):
	Likewise.

	* pcl/braid.lisp (ensure-non-standard-class): Likewise.

Revision 1.46 - (view) (annotate) - [select for diffs]
Fri Mar 28 16:07:42 2003 UTC (11 years ago) by gerd
Branch: MAIN
Changes since 1.45: +3 -2 lines
Diff to previous 1.45 , to selected 1.13
	Break some vicious metacircles.

	* pcl/dfun.lisp (*standard-classes*, *standard-slot-locations*):
	New variables.
	(compute-standard-slot-locations, standard-slot-value)
	(standard-slot-value/gf, standard-slot-value/method)
	(standard-slot-value/eslotd, standard-slot-value/class)
	(maybe-update-standard-class-locations): New functions.
	(*cmv-stack*): New variable.
	(cache-miss-values-internal): Use it to detect vicious circles,
	and call break-vicious-metacircle.
	(break-vicious-metacircle, accesses-standard-class-slot-p)
	(find-standard-class-accessor-method): New functions.

	* pcl/std-class.lisp (update-slots): Call
	maybe-update-standard-class-locations.

	* pcl/fixup.lisp (toplevel): Call compute-standard-slot-locations.

Revision 1.45 - (view) (annotate) - [select for diffs]
Tue Mar 25 11:40:03 2003 UTC (11 years ago) by gerd
Branch: MAIN
Changes since 1.44: +6 -1 lines
Diff to previous 1.44 , to selected 1.13
	* std-class.lisp (class-direct-slots, class-slots)
	(class-default-initargs, class-direct-default-initargs):
	Add methods for condition-class.

	* dfun.lisp (saut-class): Change a let to let*.

Revision 1.44 - (view) (annotate) - [select for diffs]
Sat Mar 22 16:15:15 2003 UTC (11 years ago) by gerd
Branch: MAIN
Changes since 1.43: +294 -213 lines
Diff to previous 1.43 , to selected 1.13
* bootfiles/18e/boot[12].lisp: Bootstrap files for the lisp:class
= pcl:class part.  To get it booted from 18e, cross-compile using
boot1.lisp as bootstrap.lisp in pmai's build scripts, then do a
normal compile with boot2.lisp as bootstrap.lisp with the
resulting Lisp.

* code/byte-interp.lisp, code/defstruct.lisp, code/describe.lisp:
* code/error.lisp, code/exports.lisp, code/hash-new.lisp:
* code/hash.lisp, code/macros.lisp, code/misc.lisp:
* code/package.lisp, code/pred.lisp, code/sharpm.lisp, code/type.lisp:
* compiler/dump.lisp, compiler/fndb.lisp, compiler/globaldb.lisp:
* compiler/proclaim.lisp, compiler/typetran.lisp, compiler/xref.lisp:
* compiler/generic/primtype.lisp, compiler/generic/vm-type.lisp:
Changes for to use kernel::class etc.

* code/class.lisp (toplevel): Shadow class, built-in-class etc.
(class): Give it conc-name %class-.
(toplevel) [#+bootstrap-lisp-class=pcl-class]: Define old accessors.
(everywhere): Use new class accessors.

* compiler/generic/vm-fndb.lisp (%make-instance): Change from
unsafe to flushable and movable.

* code/ntrace.lisp (expand-trace, untrace): Changes for method
tracing.

* code/profile.lisp (profile, profile-all, unprofile): Method
profiling.

* pcl/*.text, pcl/bench.lisp, pcl/extensions.lisp:
* pcl/fast-init.lisp, pcl/precom1.lisp, pcl/precom4.lisp:
* pcl/structure-class.lisp, pcl/user-instances.lisp:
Removed.

* tools/pclcom.lisp: Changes for my PCL and lisp:class =
pcl::class.

Revision 1.43.2.5 - (view) (annotate) - [select for diffs]
Sat Mar 22 12:25:57 2003 UTC (11 years ago) by gerd
Branch: cold-pcl
Changes since 1.43.2.4: +6 -7 lines
Diff to previous 1.43.2.4 , to branch point 1.43 , to next main 1.85 , to selected 1.13
Cosmetics.

Revision 1.43.2.4 - (view) (annotate) - [select for diffs]
Thu Mar 20 23:41:00 2003 UTC (11 years ago) by gerd
Branch: cold-pcl
Changes since 1.43.2.3: +23 -1 lines
Diff to previous 1.43.2.3 , to branch point 1.43 , to selected 1.13
* std-class.lisp (inform-type-system-about-class)
(shared-initialize :after): New methods for condition-class.

* macros.lisp (find-class-from-cell): Test both structure-type-p
and condition-type-p.  Use ensure-non-standard-class.

* low.lisp (structure-type-p): Return false for conditions.
(condition-type-p): New function.

* env.lisp (coerce-to-pcl-class, make-instance, change-class)
(frob): Remove methods specializing on kernel::class.

* defs.lisp (specializer-from-type): Use
ensure-non-standard-class.
(condition-class): New metaclass.

* cmucl-documentation.lisp (setf documentation): Test
both structure-type-p and condition-type-p.

* cache.lisp (wrapper-class*): Call ensure-non-standard-class.
(raise-metatype): Handle condition-class.

* braid.lisp (find-structure-class): Variable removed.
(bootstrap-initialize-class): Add supplied-p parameter for the
prototype because class null has a nil prototype.
(ensure-non-standard-class): Renamed from find-structure-class.
Handle conditions.

Revision 1.43.2.3 - (view) (annotate) - [select for diffs]
Wed Mar 19 16:33:22 2003 UTC (11 years, 1 month ago) by gerd
Branch: cold-pcl
Changes since 1.43.2.2: +14 -15 lines
Diff to previous 1.43.2.2 , to branch point 1.43 , to selected 1.13
	* pcl/*.lisp: Changes for lisp:class = pcl:class.

Revision 1.43.2.2 - (view) (annotate) - [select for diffs]
Mon Mar 10 13:41:07 2003 UTC (11 years, 1 month ago) by gerd
Branch: cold-pcl
Changes since 1.43.2.1: +2 -2 lines
Diff to previous 1.43.2.1 , to branch point 1.43 , to selected 1.13
	* std-class.lisp (shared-initialize): Fix a M-/ typo.

Revision 1.43.2.1 - (view) (annotate) - [select for diffs]
Sun Mar 9 12:47:22 2003 UTC (11 years, 1 month ago) by gerd
Branch: cold-pcl
Changes since 1.43: +256 -195 lines
Diff to previous 1.43 , to selected 1.13
*** empty log message ***

Revision 1.43 - (view) (annotate) - [select for diffs]
Thu Feb 6 15:20:12 2003 UTC (11 years, 2 months ago) by gerd
Branch: MAIN
CVS Tags: cold-pcl-base, release-18e, release-18e-base, release-18e-pre1, release-18e-pre2
Branch point for: cold-pcl, release-18e-branch
Changes since 1.42: +7 -3 lines
Diff to previous 1.42 , to selected 1.13
* pcl/defs.lisp (standard-method): Change superclass
plist-mixin to documentation-mixin so that we don't throw
away the method documentation.

* pcl/cmucl-documentation.lisp (setf documentation): Use
set-random-documentation.

* pcl/defcombin.lisp (set-random-documentation): New function.
(load-short-defcombin, load-long-defcombin): Use it.

* pcl/env.lisp (describe-object) <standard-generic-function>:
Print the generic function doc string, if any.  Print method doc
strings.
(describe-object) <class>: Print slots.

* code/describe.lisp (describe-symbol): If a class names
a PCL class, describe-object the PCL class.

Revision 1.42 - (view) (annotate) - [select for diffs]
Fri Jan 3 21:41:00 2003 UTC (11 years, 3 months ago) by pmai
Branch: MAIN
Changes since 1.41: +13 -5 lines
Diff to previous 1.41 , to selected 1.13
Entomotomy Bug: redefining-class-breaks-accessing-of-class-slots

Commited patch by Gerd Moellmann that fixes a bug in the accessing of
class-slots for redefined classes in certain cases, due to caches not
being flushed because of reused wrappers.

Revision 1.41 - (view) (annotate) - [select for diffs]
Fri Jan 3 20:33:01 2003 UTC (11 years, 3 months ago) by pmai
Branch: MAIN
Changes since 1.40: +6 -1 lines
Diff to previous 1.40 , to selected 1.13
Entomotomy Bug: finalize-inheritance-missing-method-on-forward-referenced-class

As noted by Gerd Moellmann, PCL needs a method on finalize-inheritance
specialized for forward-referenced-class, which signals a relevant error,
since forward-referenced-classes can't be finalized.

Revision 1.40 - (view) (annotate) - [select for diffs]
Fri Jan 3 20:17:49 2003 UTC (11 years, 3 months ago) by pmai
Branch: MAIN
Changes since 1.39: +16 -1 lines
Diff to previous 1.39 , to selected 1.13
Entomotomy Bug: finalize-instance-not-being-called-on-class-finalization

Fix to ensure that finalize-inheritance (the bug's name is a misnomer) is
called on class-finalization, from Gerd Moellmann via SBCL.

Revision 1.39 - (view) (annotate) - [select for diffs]
Sun Dec 22 14:09:52 2002 UTC (11 years, 3 months ago) by pmai
Branch: MAIN
Changes since 1.38: +75 -44 lines
Diff to previous 1.38 , to selected 1.13
Entomotomy Bug: slot-definition-allocation-not-amop-compliant

Added needed second half of patch, from Gerd Moellmann via SBCL, to cure
newly introduced problem with inheritance of class slots.  Also committed
modified version (again via SBCL) of Gerd's COMPUTE-SLOTS revamp for more
modular computation of slot locations.

Revision 1.38 - (view) (annotate) - [select for diffs]
Wed Dec 18 16:29:06 2002 UTC (11 years, 4 months ago) by pmai
Branch: MAIN
Changes since 1.37: +11 -11 lines
Diff to previous 1.37 , to selected 1.13
Entomotomy Bug: slot-definition-allocation-not-amop-compliant

Committed a slightly adjusted patch from Gerd Moellmann, which makes the
GF slot-definition-allocation return :class for class slots, as specified
by AMOP, instead of the class object, as it did previously.

Revision 1.37 - (view) (annotate) - [select for diffs]
Tue Oct 29 16:20:45 2002 UTC (11 years, 5 months ago) by pmai
Branch: MAIN
Changes since 1.36: +24 -6 lines
Diff to previous 1.36 , to selected 1.13
Entomotomy Bug: redefined-classes-and-subtypep
This patchset by Gerd Moellmann reenables the previous fix to this bug,
without retriggering the obsolete-instance-trap-on-redefined-class bug.
Additionally, this cleans up the layout-invalid vs. wrapper-state logic
making the code much easier to follow.

Revision 1.36 - (view) (annotate) - [select for diffs]
Sat Oct 19 14:56:03 2002 UTC (11 years, 6 months ago) by pmai
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 , to selected 1.13
Merged patch by Gerd Moellmann to replace (load-truename) with
*load-pathname*, thus dropping the function load-truename, in order to
improve location-independent source recording.

Revision 1.35 - (view) (annotate) - [select for diffs]
Sat Oct 19 14:32:44 2002 UTC (11 years, 6 months ago) by pmai
Branch: MAIN
Changes since 1.34: +5 -5 lines
Diff to previous 1.34 , to selected 1.13
Committed patch by Gerd Moellmann to rename the constant *slot-unbound* to
the more fitting name +slot-unbound+.

Revision 1.34.2.1 - (view) (annotate) - [select for diffs]
Fri Oct 4 23:14:08 2002 UTC (11 years, 6 months ago) by pmai
Branch: UNICODE-BRANCH
Changes since 1.34: +5 -2 lines
Diff to previous 1.34 , to next main 1.85 , to selected 1.13
Checked in Brian Spilsbury's experimental Unicode, locales, and dialect
support patchset.  This lives on its own branch, so that people can
play with it and tweak it, without disturbing 18e release engineering
on the main branch.  Bootstrapping has only been tried on LINKAGE_TABLE
x86/Linux builds.  A working cross-compile script is checked in under
bootfiles/19a/boot1-cross-unicode.lisp.  The script still leaves you
with some interactive errors, on the cross compile, which you should
answer with 2.  See the mailing list for more information.

Revision 1.34 - (view) (annotate) - [select for diffs]
Sat Sep 7 13:28:46 2002 UTC (11 years, 7 months ago) by pmai
Branch: MAIN
CVS Tags: UNICODE-BASE
Branch point for: UNICODE-BRANCH
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 , to selected 1.13
Committed patches by Gerd Moellmann to eliminate PCL's without-interrupts
in favour of either system:without-interrupts (for non-MP versions), and
a lock-based approach for MP versions.  Note that the latter is a bit
experimental, see the comments in the code for details.

Revision 1.33 - (view) (annotate) - [select for diffs]
Tue Aug 27 18:46:49 2002 UTC (11 years, 7 months ago) by pmai
Branch: MAIN
CVS Tags: LINKAGE_TABLE, PRE_LINKAGE_TABLE
Changes since 1.32: +21 -22 lines
Diff to previous 1.32 , to selected 1.13
Patch from Gerd Moellmann to modify more simple-program-error sites to
use the new simple-program-error function.

Revision 1.32 - (view) (annotate) - [select for diffs]
Mon Aug 26 02:23:15 2002 UTC (11 years, 7 months ago) by pmai
Branch: MAIN
Changes since 1.31: +124 -128 lines
Diff to previous 1.31 , to selected 1.13
Huge patch by Gerd Moellmann that removes PCL::ITERATE and PCL::GATHER*
in favor of normal CL constructs.  In a similar vein to SBCL, this patch
also replaces all uses of #'(lambda ...) by just (lambda ...), and
removes now-dated looking quotes in front of self-evaluating objects,
like keywords and t/nil.  The patch has been slightly frobbed by me,
to correct a couple of slight oversights, and make more effective use
of the loop facility in a number of places.

Revision 1.31 - (view) (annotate) - [select for diffs]
Mon Aug 19 16:43:15 2002 UTC (11 years, 8 months ago) by pmai
Branch: MAIN
Changes since 1.30: +43 -10 lines
Diff to previous 1.30 , to selected 1.13
Patch from Gerd Moellmann to bring error detection of defclass in line
with ANSI requirements:

o If there are any duplicate slot names, an error of type
  program-error is signaled.
o If an initialization argument name appears more than once in
  :default-initargs class option, an error of type program-error is
  signaled.
o If any of the following slot options appears more than once in a
  single slot description, an error of type program-error is signaled:
  :allocation, :initform, :type, :documentation.

Revision 1.30 - (view) (annotate) - [select for diffs]
Wed Jun 5 23:17:47 2002 UTC (11 years, 10 months ago) by pmai
Branch: MAIN
Changes since 1.29: +1 -2 lines
Diff to previous 1.29 , to selected 1.13
This fixes a bug noted by Nicolas Neuss, where executing a defclass
form with a metaclass of structure-class would result in the
generation of recursive print-object methods, so that the printing of
instances of such a class would result in an endless loop.  The bug
was caused by the changes that made structure-printing ANSI
compliant.  Removing a now redundant :print-function option to the
automatically generated defstruct form cured the problem.

Revision 1.29 - (view) (annotate) - [select for diffs]
Wed Jun 5 23:00:12 2002 UTC (11 years, 10 months ago) by pmai
Branch: MAIN
Changes since 1.28: +17 -11 lines
Diff to previous 1.28 , to selected 1.13
Make change-class ANSI-compliant, by allowing the passing of
initargs.  This fix is thanks to Espen S. Johnsen, who noted that
update-instance-for-different-class already supported the passing of
initargs, so that the fix is only to make change-class accept
initargs, and pass them along to u-i-f-d-c.  Also fixes a probably
undetected bug in change-class with a lisp::class second argument
(bogus apply in env.lisp).

Revision 1.9.2.6 - (view) (annotate) - [select for diffs]
Sat Mar 23 18:51:21 2002 UTC (12 years ago) by pw
Branch: RELENG_18
CVS Tags: RELEASE_18d
Changes since 1.9.2.5: +10 -12 lines
Diff to previous 1.9.2.5 , to branch point 1.9 , to next main 1.85 , to selected 1.13
Mega commit to bring RELENG_18 branch in sync with HEAD in preparation
for release tagging 18d.

Revision 1.28 - (view) (annotate) - [select for diffs]
Thu Nov 29 03:50:35 2001 UTC (12 years, 4 months ago) by pmai
Branch: MAIN
Changes since 1.27: +9 -10 lines
Diff to previous 1.27 , to selected 1.13
Fixed AMOP conformance bug of ensure-class-using-class reported by
Hannu Koivisto:  ensure-class-using-class shouldn't default unsupplied
:direct-superclasses or :direct-slots arguments in its calls to
make-instance and reinitialize-instance.

Code audit showed that only coerce-to-class relied on the old
behaviour.  This was necessary because the initialization code for
std-class didn't default an unsupplied value for :direct-superclasses
correctly, producing a class with no direct superclasses, contrary to
the AMOP.  Fixed this as well.

Revision 1.27 - (view) (annotate) - [select for diffs]
Tue Apr 10 22:37:23 2001 UTC (13 years ago) by pw
Branch: MAIN
Changes since 1.26: +2 -3 lines
Diff to previous 1.26 , to selected 1.13
From Pierre Mai:

o All the stuff from cmu-low.lisp has been merged into low.lisp.
o Therefore cmu-low.lisp has been removed completely.
o All the stuff in low.lisp which either wasn't used in current PCL or
  was unnecessary in CMU CL, or which was implemented as no-ops for
  CMU CL has been removed.
o Calls in other files to functions which were dropped have been
  removed.
o Source order reorganised a bit and added several comments and
  doc-strings.
o Made `*optimize-speed*' consistent for small and non-small cores,
  and fixed ordering problem.
o Added `*compile-lambda-silent-p*' which when true (the default) will
  cause compile-lambda to be silent when compiling PCL-generated code.

Revision 1.9.2.5 - (view) (annotate) - [select for diffs]
Fri Aug 4 10:34:59 2000 UTC (13 years, 8 months ago) by pw
Branch: RELENG_18
CVS Tags: RELEASE_18c
Changes since 1.9.2.4: +11 -3 lines
Diff to previous 1.9.2.4 , to branch point 1.9 , to selected 1.13
These changes remove some obsolete and unused type system interface codes,
and introduces code to "inform-type-system-about-std-class". The effect
of this new code is to put minimal class definitions into the compile-time
environment to prevent undefined-type warnings. These definitions are
replaced with the correct class defs at load-time.

Revision 1.26 - (view) (annotate) - [select for diffs]
Thu Aug 3 16:58:56 2000 UTC (13 years, 8 months ago) by pw
Branch: MAIN
Changes since 1.25: +11 -3 lines
Diff to previous 1.25 , to selected 1.13
These changes remove some obsolete and unused type system interface codes,
and introduces code to "inform-type-system-about-std-class". The effect
of this new code is to put minimal class definitions into the compile-time
environment to prevent undefined-type warnings. These definitions are
replaced with the correct class defs at load-time.

Revision 1.9.2.4 - (view) (annotate) - [select for diffs]
Tue May 23 16:39:01 2000 UTC (13 years, 10 months ago) by pw
Branch: RELENG_18
Changes since 1.9.2.3: +16 -39 lines
Diff to previous 1.9.2.3 , to branch point 1.9 , to selected 1.13
This set of revisions brings the RELENG_18 branch up to HEAD in preparation
for an 18c release.

Revision 1.25 - (view) (annotate) - [select for diffs]
Sun May 30 23:14:08 1999 UTC (14 years, 10 months ago) by pw
Branch: MAIN
Changes since 1.24: +6 -21 lines
Diff to previous 1.24 , to selected 1.13
Remove all #+ and #- conditionals from the source code. What is left
is essentially Common Lisp except for explicit references to things
in CMUCL specific packages.

Revision 1.24 - (view) (annotate) - [select for diffs]
Sun Mar 14 01:14:14 1999 UTC (15 years, 1 month ago) by dtc
Branch: MAIN
Changes since 1.23: +3 -4 lines
Diff to previous 1.23 , to selected 1.13
Further cleanup of the code now that the :SETF feature is assumed standard.

Revision 1.23 - (view) (annotate) - [select for diffs]
Thu Mar 11 16:51:16 1999 UTC (15 years, 1 month ago) by pw
Branch: MAIN
Changes since 1.22: +7 -19 lines
Diff to previous 1.22 , to selected 1.13
Cleanup of the PCL directory. Removed files and conditional code
for long dead lisp implementations. Some parts of the code is
now a bit easier to read and (hopefully) understand.

Revision 1.22 - (view) (annotate) - [select for diffs]
Fri Feb 12 21:47:14 1999 UTC (15 years, 2 months ago) by pw
Branch: MAIN
Changes since 1.21: +4 -3 lines
Diff to previous 1.21 , to selected 1.13
/tmp/z.tmp

Revision 1.21 - (view) (annotate) - [select for diffs]
Tue Jan 12 17:51:09 1999 UTC (15 years, 3 months ago) by pw
Branch: MAIN
Changes since 1.20: +1 -5 lines
Diff to previous 1.20 , to selected 1.13
Modifies EXPAND-DEFCLASS to substitute pcl::standard-class for
lisp:standard-class in the superclass list given to defclass. This
is consistent with the treatment given the :metaclass option argument.

std-class.lisp is restored to its original state wiping out all traces
of bogus change introduced in revision 1.19.

Revision 1.20 - (view) (annotate) - [select for diffs]
Wed Jan 6 14:30:07 1999 UTC (15 years, 3 months ago) by pw
Branch: MAIN
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 , to selected 1.13
Backout previous change to ensure-class-values. There is more to
this bug than previously thought.

Revision 1.19 - (view) (annotate) - [select for diffs]
Wed Jan 6 13:43:47 1999 UTC (15 years, 3 months ago) by pw
Branch: MAIN
Changes since 1.18: +4 -1 lines
Diff to previous 1.18 , to selected 1.13
Fix ENSURE-CLASS-VALUES so that (defclass myclass(standard-class)()) works
the same as (defclass myclass()()). Had to map LISP:STANDARD-CLASS
to PCL::STANDARD-CLASS when the former was explicitly provided.

Revision 1.18 - (view) (annotate) - [select for diffs]
Sun Dec 20 04:30:22 1998 UTC (15 years, 4 months ago) by dtc
Branch: MAIN
Changes since 1.17: +4 -0 lines
Diff to previous 1.17 , to selected 1.13
Add CMUCL style file-comments; from Peter Van Eynde.

Revision 1.9.2.3 - (view) (annotate) - [select for diffs]
Tue Jun 23 11:25:38 1998 UTC (15 years, 9 months ago) by pw
Branch: RELENG_18
CVS Tags: RELEASE_18b
Changes since 1.9.2.2: +48 -33 lines
Diff to previous 1.9.2.2 , to branch point 1.9 , to selected 1.13
This (huge) revision brings the RELENG_18 branch up to the current HEAD.
Note code/unix-glib2.lisp not yet included -- not sure it is ready to go.

Revision 1.17 - (view) (annotate) - [select for diffs]
Sun Jun 21 19:04:44 1998 UTC (15 years, 9 months ago) by dtc
Branch: MAIN
Changes since 1.16: +29 -25 lines
Diff to previous 1.16 , to selected 1.13
When initialising class metaobjects and the direct-superclasses is
null or empty, it should default to funcallable-standard-object if the
class is an instance of funcallable-standard-class whereas it was
always defaulting to standard-class.

Catch attempts to change the class of an instance via change-class
between the incompatible standard-class and funcallable-standard-class
metaclasses.

Revision 1.16 - (view) (annotate) - [select for diffs]
Sun Jun 21 10:16:56 1998 UTC (15 years, 9 months ago) by dtc
Branch: MAIN
Changes since 1.15: +5 -1 lines
Diff to previous 1.15 , to selected 1.13
Since funcallable-standard-objects are now disjoint from
standard-objects, classes with meta-class standard-class are no longer
valid super-classes of classes with meta-class
funcallable-standard-class, so validate-superclass should now return
NIL for this combination.

Further classes with meta-class std-class are now valid superclasses
of classes with meta-class of either standard-class or
funcallable-standard-class; add validate-superclass methods allowing
such super-classes which are handy for mixins of both standard-objects
and funcallable-standard-objects.

Revision 1.15 - (view) (annotate) - [select for diffs]
Fri Jun 5 02:53:54 1998 UTC (15 years, 10 months ago) by dtc
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 , to selected 1.13
Rework the PCL class hierarchy to better match the disjoint instance
and funcallable-instance types within CMUCL. Add the new class
funcallable-standard-object, and the new class std-object as a
superclass of both standard-object and
funcallable-standard-object. Generic-functions are now
funcallable-standard-objects implemented as FINs and disjoint from
standard-objects which are implemented as instances in CMUCL, fixing
some problems in the type system.

This change moves the PCL implementation away from the MOP
specification which requires that generic-functions be
standard-objects. However ANSI CL does not require generic functions
to be standard-objects and the MOP author Gregor Kiczales suggests it
is appropriate for generic functions to be disjoint from
standard-objects.

Revision 1.14 - (view) (annotate) - [select for diffs]
Mon May 4 01:27:24 1998 UTC (15 years, 11 months ago) by dtc
Branch: MAIN
Changes since 1.13: +1 -1 lines
Diff to previous 1.13
Gray streams support:
* Rename the 'stream structure class to sys:lisp-stream.
* Add a new none hierarchical 'stream built-in class which inherits
  from: instance, t.
* Hack in the new stream class as a mixin for the structure base
  lisp-stream class which now inherits from: stream, structure-object,
  instance, t.
* Add a new 'fundamental-stream standard-class which includes 'stream
  as a mixin, and add PCL hacks to allow this to be redefined after PCL is
  loaded to be (defclass fundamental-stream (standard-object stream) ...).
* Add appropriate support to the base stream functions to dispatch to
  the Gray stream functions for the handling of fundamental-streams.
  Some of the lisp-streams encapsulating CLOS streams still need
  a little work.

Revision 1.13 - (view) (annotate) - [selected]
Fri Apr 17 00:50:17 1998 UTC (16 years ago) by dtc
Branch: MAIN
Changes since 1.12: +7 -4 lines
Diff to previous 1.12
Within update-cpl, setup the class precedence list before of the class
before calling force-cache-flushes as this in turn calls
update-lisp-class-layout which need the cpl to correctly setup the
layout inherits.

Revision 1.12 - (view) (annotate) - [select for diffs]
Sun Dec 14 20:41:03 1997 UTC (16 years, 4 months ago) by pw
Branch: MAIN
Changes since 1.11: +5 -1 lines
Diff to previous 1.11 , to selected 1.13
This set of changes enables the use of forward referenced classes in PCL.
The problem was(is) that the wrapper object needed to connect the Lisp
type system to PCL classes doesn't exist until the forward-referenced-class
is defined. At that time all the subclasses of it are initialized and
wrappers attached. In the meantime, the actual forward referenced class is
an instance of pcl::forward-referenced-class and any subclasses are
pcl class instances with most slots nil.

The fix herein arranges for UPDATE-LISP-CLASS-LAYOUT to also set
the lisp:class-name and use (setf lisp:find-class) to connect the
new layout to the Lisp class system.

An undesired consequence of this is that DEFCLASS can't return a valid
class object unless all superclasses are defined. This shouldn't be a
real problem as the classes can't be used in the intermediate state,
but the HyperSpec says DEFCLASS returns a class object. We return
a valid class object or NIL.

Revision 1.9.2.2 - (view) (annotate) - [select for diffs]
Sat Aug 30 18:41:37 1997 UTC (16 years, 7 months ago) by dtc
Branch: RELENG_18
CVS Tags: RELEASE_18a
Changes since 1.9.2.1: +6 -7 lines
Diff to previous 1.9.2.1 , to branch point 1.9 , to selected 1.13
Re-define the documentation function according to the ANSI CL spec.;
the doc-type argument is no longer optional.

Revision 1.11 - (view) (annotate) - [select for diffs]
Sat Aug 30 18:40:27 1997 UTC (16 years, 7 months ago) by dtc
Branch: MAIN
Changes since 1.10: +6 -7 lines
Diff to previous 1.10 , to selected 1.13
Re-define the documentation function according to the ANSI CL spec.;
the doc-type argument is no longer optional.

Revision 1.9.2.1 - (view) (annotate) - [select for diffs]
Fri Aug 29 20:22:59 1997 UTC (16 years, 7 months ago) by dtc
Branch: RELENG_18
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 , to selected 1.13
Stop the documentation function calling the lisp::documentation
function; causes a loop.

Revision 1.10 - (view) (annotate) - [select for diffs]
Fri Aug 29 20:21:32 1997 UTC (16 years, 7 months ago) by dtc
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 , to selected 1.13
Stop the documentation function calling the lisp::documentation
function; causes a loop.

Revision 1.9 - (view) (annotate) - [select for diffs]
Thu Feb 6 21:24:22 1997 UTC (17 years, 2 months ago) by pw
Branch: MAIN
Branch point for: RELENG_18
Changes since 1.8: +122 -72 lines
Diff to previous 1.8 , to selected 1.13
This commit brings the PCL repository up to release 17f and also includes
the changes in the X86 1.03.7 kit. Although the 1.03.7 changes were
already in the repository, the other files appear to be of early vintage
and do not work with a 17f system. Hopefully all is correctly synched now.

Revision 1.8.1.7 - (view) (annotate) - [select for diffs] (vendor branch)
Tue Aug 23 14:28:11 1994 UTC (19 years, 7 months ago) by ram
Branch: cmu
Changes since 1.8.1.6: +4 -2 lines
Diff to previous 1.8.1.6 , to next main 1.85 , to selected 1.13
Add hint to use validate-superclass when we have incompatible classes.

Revision 1.8.1.6 - (view) (annotate) - [select for diffs] (vendor branch)
Sat Mar 19 23:13:39 1994 UTC (20 years, 1 month ago) by ram
Branch: cmu
Changes since 1.8.1.5: +92 -59 lines
Diff to previous 1.8.1.5 , to selected 1.13
Improved obsolete structure hacks from Harris.

Revision 1.8.1.5 - (view) (annotate) - [select for diffs] (vendor branch)
Thu Mar 17 15:14:46 1994 UTC (20 years, 1 month ago) by ram
Branch: cmu
Changes since 1.8.1.4: +3 -1 lines
Diff to previous 1.8.1.4 , to selected 1.13
Put in harris patch to invalid structure objects.

Revision 1.8.1.4 - (view) (annotate) - [select for diffs] (vendor branch)
Thu Mar 10 17:59:25 1994 UTC (20 years, 1 month ago) by ram
Branch: cmu
Changes since 1.8.1.3: +4 -5 lines
Diff to previous 1.8.1.3 , to selected 1.13
Patch from Harris.

Revision 1.8.1.3 - (view) (annotate) - [select for diffs] (vendor branch)
Fri Feb 11 11:28:03 1994 UTC (20 years, 2 months ago) by ram
Branch: cmu
Changes since 1.8.1.2: +5 -4 lines
Diff to previous 1.8.1.2 , to selected 1.13
Call UPDATE-LISP-CLASS-LAYOUT instead of REGISTER-LAYOUT, since the bare R-L
doesn't update the inherits from the CPL.
 

Revision 1.8.1.2 - (view) (annotate) - [select for diffs] (vendor branch)
Wed Aug 18 20:37:14 1993 UTC (20 years, 8 months ago) by ram
Branch: cmu
Changes since 1.8.1.1: +8 -6 lines
Diff to previous 1.8.1.1 , to selected 1.13
Hacked READ-LOAD-DEFCLASS to return a LISP:CLASS, not a PCL::CLASS.

Revision 1.8.1.1 - (view) (annotate) - [select for diffs] (vendor branch)
Tue Jul 20 19:22:12 1993 UTC (20 years, 9 months ago) by ram
Branch: cmu
Changes since 1.8: +12 -1 lines
Diff to previous 1.8 , to selected 1.13
Changed structure-class initialization to just use the existing structure
layout, instead of making a new wrapper.
In update-slots, update the type system information.

Revision 1.8 - (view) (annotate) - [select for diffs]
Mon Feb 8 17:39:23 1993 UTC (21 years, 2 months ago) by phg
Branch: MAIN
Branch point for: cmu
Changes since 1.7: +1 -2 lines
Diff to previous 1.7 , to selected 1.13
Changed the definition of force-cache-flushes by removing unnecessary
call to update-constructors, as suggested by Richard Harris.

Revision 1.7 - (view) (annotate) - [select for diffs]
Tue Jan 12 18:27:26 1993 UTC (21 years, 3 months ago) by phg
Branch: MAIN
Changes since 1.6: +8 -38 lines
Diff to previous 1.6 , to selected 1.13
September-16-92-PCL-e has been incorporated into the CMUCL sources thanks
to Rick Harris. 

Revision 1.4.1.1 - (view) (annotate) - [select for diffs] (vendor branch)
Mon Dec 14 12:58:29 1992 UTC (21 years, 4 months ago) by ram
Branch: patch_16
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 , to next main 1.85 , to selected 1.13
This is is March-92-PCL 2c

Revision 1.6 - (view) (annotate) - [select for diffs]
Mon Nov 9 15:21:49 1992 UTC (21 years, 5 months ago) by ram
Branch: MAIN
Changes since 1.5: +438 -862 lines
Diff to previous 1.5 , to selected 1.13
This is September 92 PCL.

Revision 1.5 - (view) (annotate) - [select for diffs]
Sat Aug 1 15:30:00 1992 UTC (21 years, 8 months ago) by ram
Branch: MAIN
Changes since 1.4: +762 -409 lines
Diff to previous 1.4 , to selected 1.13
This is July 92 PCL

Revision 1.4 - (view) (annotate) - [select for diffs]
Mon Jun 1 18:39:00 1992 UTC (21 years, 10 months ago) by ram
Branch: MAIN
Branch point for: patch_16
Changes since 1.3: +596 -207 lines
Diff to previous 1.3 , to selected 1.13
This is March-92-PCL-2a.

Revision 1.1.2.1 - (view) (annotate) - [select for diffs]
Wed Jan 22 20:30:23 1992 UTC (22 years, 2 months ago) by ram
Branch: patch_15
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 , to next main 1.85 , to selected 1.13
Fix EOF lossage.

Revision 1.3 - (view) (annotate) - [select for diffs]
Wed Oct 23 15:35:19 1991 UTC (22 years, 5 months ago) by ram
Branch: MAIN
Changes since 1.2: +0 -1 lines
Diff to previous 1.2 , to selected 1.13
Deleted spurious line at EOF due to non-newline termination in merge.

Revision 1.2 - (view) (annotate) - [select for diffs]
Sat Oct 19 17:23:31 1991 UTC (22 years, 6 months ago) by ram
Branch: MAIN
Changes since 1.1: +41 -36 lines
Diff to previous 1.1 , to selected 1.13
Merged with latest PCL version.

Revision 1.1.1.1 - (view) (annotate) - [select for diffs] (vendor branch)
Sat Oct 19 16:45:50 1991 UTC (22 years, 6 months ago) by ram
Changes since 1.1: +41 -36 lines
Diff to previous 1.1 , to next main 1.85 , to selected 1.13
*** empty log message ***

Revision 1.1 - (view) (annotate) - [select for diffs]
Sun Aug 12 03:48:21 1990 UTC (23 years, 8 months ago) by wlott
Branch: MAIN
Branch point for: patch_15
Diff to selected 1.13
Initial revision

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.5