Handbook
Glossary
file-reader? ( object -- ? )
Vocabulary
io
.
files
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
file-reader
class.
Definition
USING:
classes.tuple.private
io.ports
io.streams.c
kernel
math.private
slots.private
;
IN:
io.files
:
file-reader?
( object -- ? )
dup
tuple?
[
layout-of
dup
dup
1
slot
15
fixnum>=
[
15
slot
\
input-port
eq?
]
[
drop
f
]
if
[
drop
t
]
[
dup
1
slot
13
fixnum>=
[
13
slot
\
c-reader
eq?
]
[
drop
f
]
if
]
if
]
[
drop
f
]
if
;