Changeset 167


Ignore:
Timestamp:
Dec 31, 2003, 3:09:39 AM (21 years ago)
Author:
Gary Byers
Message:

Use %class-slots instead of %CLASS.SLOTS when CLASS-SLOTS won't do. Move
CONSTANTLY here, remove some outdated comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/level-1/l1-clos.lisp

    r151 r167  
    3434
    3535(defun extract-instance-effective-slotds (class)
    36   (extract-slotds-with-allocation :instance (%class.slots class)))
     36  (extract-slotds-with-allocation :instance (%class-slots class)))
    3737
    3838(defun extract-class-effective-slotds (class)
    39   (extract-slotds-with-allocation :class (%class.slots class)))
     39  (extract-slotds-with-allocation :class (%class-slots class)))
    4040
    4141(defun extract-instance-and-class-slotds (slotds)
     
    261261          (pushnew i initargs :test #'eq :key #'car))))))
    262262
    263 (defun constantly (x)
    264   #'(lambda (&rest ignore)
    265       (declare (dynamic-extent ignore)
    266                (ignore ignore))
    267       x))
     263
    268264
    269265
     
    295291                   #|(%class.own-wrapper class)|#
    296292                   (%cons-wrapper class)))))
    297       ;;; This is a crock: structure-classes should have slots ...
    298       (unless (<= (the fixnum (uvsize (instance.slots class))) %class.slots)
    299         (setf (%class.slots class) eslotds))
     293      (setf (%class.slots class) eslotds)
    300294      (setf (%wrapper-instance-slots new-wrapper) new-ordering
    301295            (%wrapper-class-slots new-wrapper) (%class-get class :class-slots)
     
    869863                  :initargs (:direct-slots) :readers (class-direct-slots))
    870864                 (:name slots :initform nil :initfunction ,#'false
    871                   ;; Defining CLASS-SLOTS naively as a reader method
    872                   ;; can cause infinite recursion.
    873                   ;; (It'll be especially naive if there's a non-reader
    874                   ;; method defined on CLASS-SLOTS.)
    875                   ;; The fact that the slot is a primary slot
    876                   ;; saves the day (keeping us from trying to call
    877                   ;; CLASS-SLOTS inside SLOT-VALUE-USING-CLASS
    878865                   :readers (class-slots))
    879866                 (:name kernel-p :initform nil :initfunction ,#'false)
Note: See TracChangeset for help on using the changeset viewer.