Handbook
Glossary
g? ( object -- ? )
Vocabulary
benchmark
.
dispatch5
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
g
class.
Definition
USING:
classes.tuple.private
kernel
slots.private
;
IN:
benchmark.dispatch5
:
g?
( object -- ? )
dup
tuple?
[
layout-of
7
slot
dup
\
x30
eq?
[
drop
t
]
[
dup
\
x29
eq?
[
drop
t
]
[
dup
\
x28
eq?
[
drop
t
]
[
dup
\
x27
eq?
[
drop
t
]
[
dup
\
x26
eq?
~quotation~ ~quotation~
if
]
if
]
if
]
if
]
if
]
[
drop
f
]
if
;