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