Handbook
Glossary
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:
classes.struct
classes.tuple.private
kernel
kernel.private
math.private
slots.private
;
IN:
alien.c-types
:
value-type?
( object -- ? )
dup
tag
2
eq?
[
drop
t
]
[
dup
tuple?
[
layout-of
dup
1
slot
9
fixnum>=
[
9
slot
\
struct-c-type
eq?
]
[
drop
f
]
if
]
[
drop
f
]
if
]
if
;