Handbook
Glossary
box? ( object -- ? )
Vocabulary
benchmark
.
fib4
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
box
class.
Definition
USING:
classes.tuple.private
kernel
slots.private
;
IN:
benchmark.fib4
:
box?
( object -- ? )
dup
tuple?
[
layout-of
7
slot
\
box
eq?
]
[
drop
f
]
if
;