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