Changeset 5056


Ignore:
Timestamp:
12/10/03 18:10:22 (18 years ago)
Author:
piso
Message:

SLOT-EXISTS-P-USING-CLASS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/clos.lisp

    r5055 r5056  
    22;;;
    33;;; Copyright (C) 2003 Peter Graves
    4 ;;; $Id: clos.lisp,v 1.31 2003-12-10 17:55:06 piso Exp $
     4;;; $Id: clos.lisp,v 1.32 2003-12-10 18:10:22 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    492492  (not (null (find slot-name (class-slots (class-of instance))
    493493                   :key #'slot-definition-name))))
     494
    494495(defun slot-exists-p (object slot-name)
    495496  (if (eq (class-of (class-of object)) the-class-standard-class)
     
    13931394
    13941395(defgeneric slot-exists-p-using-class (class instance slot-name))
    1395 (defmethod slot-exists-p-using-class
    1396   ((class standard-class) instance slot-name)
     1396
     1397(defmethod slot-exists-p-using-class (class instance slot-name)
     1398  nil)
     1399
     1400(defmethod slot-exists-p-using-class ((class standard-class) instance slot-name)
    13971401  (std-slot-exists-p instance slot-name))
    13981402
Note: See TracChangeset for help on using the changeset viewer.