slot-initialized?

Tests whether a slot has been initialized.

Returns true if the slot in instance that would be accessed by the getter generic function is initialized.  If the slot is not initialized, then false is returned.

slot-initialized? will signal an error if the getter does not access a slot in the instance.

To support slot-initialized? for a virtual slot, programmers must define a method for slot-initialized? that shares a protocol with the getter of the slot.

Exported from

Modifiers

open

Arguments

instanceAn instance of <object>.
getterAn instance of <generic-function>.

Values

booleanAn instance of <boolean>.
The common-dylan module.
Whenever possible, we have tried to keep the Dylan module pristine and unextended, preferring to add our extensions to separate modules or libraries.
The class of all Dylan objects.
The class of functions that are made up of a number of individual methods.
The class of boolean values.