Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
value-type? ( object -- ? )
Vocabulary
alien.c-types
Inputs and outputs
object
an
object
?
a boolean
Word description
Tests if the object is an instance of the
value-type
class.
Definition
USING:
arrays
classes.struct
kernel
;
IN:
alien.c-types
:
value-type?
( object -- ? )
dup
struct-c-type?
[
drop
t
]
[
array?
]
if
;