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