(rontolisp) docs
← Macros

slot-boundp

(slot-boundp instance 'slot-name)

Whether the named slot of the instance holds a value: nil when the instance's class has no such slot, when the slot was written with no :initform and no initarg supplied it, or after slot-makunbound; t otherwise. Reading an unbound slot with slot-value or an accessor signals unbound-slot, whose cell-error-name is the slot and whose unbound-slot-instance is the object.

The slot name may be a runtime-computed symbol on every backend, like slot-value, and #'slot-boundp is a function value.