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