Changeset 2580
- Timestamp:
- 02/21/08 06:54:33 (11 months ago)
- Files:
-
- trunk/bknr/datastore/src/indices/indices.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bknr/datastore/src/indices/indices.lisp
r2529 r2580 22 22 :documentation "If T, NIL is used as a valid slot value, else slots with NIL value are treated as unbound slots."))) 23 23 24 (defmethod initialize-instance :after ((index slot-index) &key (test #'eql) slots index-nil &allow-other-keys) 25 (unless (<= (length slots) 1) 26 (error "Can not create slot-index with more than one slot.")) 24 (defmethod initialize-instance :after ((index slot-index) &key (test #'eql) slot-name slots index-nil) 25 (unless slots 26 (setf slots (list slot-name))) 27 (unless (= (length slots) 1) 28 (error "Exactly one slot name in :SLOTS initarg required to create a SLOT-INDEX")) 27 29 (with-slots (hash-table slot-name) index 28 30 (setf hash-table (make-hash-table :test test)
