Handbook
Glossary
rational? ( object -- ? )
Vocabulary
math
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
rational
class.
Definition
USING:
classes.tuple.private
kernel
kernel.private
math.private
slots.private
;
IN:
math
:
rational?
( object -- ? )
dup
tag
1
swap
fixnum-shift-fast
33
fixnum-bitand
0
eq?
not
[
drop
t
]
[
dup
tuple?
[
layout-of
7
slot
\
ratio
eq?
]
[
drop
f
]
if
]
if
;