instance? ( object class -- ? )
Factor handbook » The language » Objects » Classes

Prev:class-of ( object -- class )
Next:superclass-of ( class -- super )


Vocabulary
classes

Inputs
objectan object
classa class


Outputs
?a boolean


Word description
Tests whether the input object is a member of the class.

Definition

GENERIC: instance? ( object class -- ? ) flushable


Methods