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