Handbook
Glossary
predicate-class? ( object -- ? )
Factor handbook
»
The language
»
Objects
»
Classes
»
Predicate classes
Prev:
predicate-class
Vocabulary
classes
.
predicate
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
predicate-class
class.
Definition
USING:
classes
kernel
words
;
IN:
classes.predicate
:
predicate-class?
( object -- ? )
dup
class?
[
"metaclass"
word-prop
predicate-class
eq?
]
[
drop
f
]
if
;