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