Package: closer-mop

Generic Function slot-boundp-using-class

Lambda List

slot-boundp-using-class (class object slotd)

Arguments

The class argument is a class metaobject. It is the class of the object argument.
The object argument is an object.
The slot argument is an effective slot definition metaobject.

Return Value

This generic function returns true or false.

Details

This generic function implements the behavior of the slot-boundp function. It is called by slot-boundp with the class of object as its first argument and the pertinent effective slot definition metaobject as its third argument.

The generic function slot-boundp-using-class tests whether a specific slot in an instance is bound.

The results are undefined if the class argument is not the class of the object argument, or if the slot argument does not appear among the set of effective slots associated with the class argument.

Methods

slot-boundp-using-class ((class standard-class) object (slot standard-effective-slot-definition))
slot-boundp-using-class ((class funcallable-standard-class) object (slot standard-effective-slot-definition))
These methods implement the full behavior of this generic function for slots with allocation :instance and :class. If the supplied slot has an allocation other than :instance or :class an error is signaled.

Overriding these methods is permitted, but may require overriding other methods in the standard implementation of the slot access protocol.


slot-boundp-using-class ((class built-in-class) object slot)
This method signals an error.

Notes

In cases where the class metaobject class does not distinguish unbound slots, true should be returned.