Changeset 5057


Ignore:
Timestamp:
12/10/03 18:20:57 (17 years ago)
Author:
piso
Message:

SLOT-EXISTS-P-USING-CLASS: support structures.

File:
1 edited

Legend:

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

    r5056 r5057  
    22;;;
    33;;; Copyright (C) 2003 Peter Graves
    4 ;;; $Id: clos.lisp,v 1.32 2003-12-10 18:10:22 piso Exp $
     4;;; $Id: clos.lisp,v 1.33 2003-12-10 18:20:57 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    14011401  (std-slot-exists-p instance slot-name))
    14021402
     1403(defmethod slot-exists-p-using-class ((class structure-class) instance slot-name)
     1404  (dolist (dsd (class-slots class))
     1405    (when (eq (dsd-name dsd) slot-name)
     1406      (return-from slot-exists-p-using-class t)))
     1407  nil)
     1408
    14031409(defgeneric slot-boundp-using-class (class instance slot-name))
    14041410(defmethod slot-boundp-using-class
Note: See TracChangeset for help on using the changeset viewer.