Handbook
Glossary
vocab-spec? ( object -- ? )
Vocabulary
vocabs
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
vocab-spec
class.
Definition
USING:
classes.tuple.private
kernel
math.private
slots.private
;
IN:
vocabs
:
vocab-spec?
( object -- ? )
dup
tuple?
[
layout-of
dup
7
slot
\
vocab-link
eq?
[
drop
t
]
[
dup
1
slot
9
fixnum>=
[
9
slot
\
vocab
eq?
]
[
drop
f
]
if
]
if
]
[
drop
f
]
if
;