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