CLCS
Function

slot-exists-p

slot-exists-p object slot-namegeneralized-boolean

Arguments and Values

objectan object.
slot-namea symbol.
generalized-booleana generalized boolean.

Description

Returns true if the object has a slot named slot-name.

Affected By

defclass, defstruct

Notes

Although no implementation is required to do so, implementors are strongly encouraged to implement the function slot-exists-p using the function slot-exists-p-using-class described in the Metaobject Protocol.