Handbook
Glossary
representation? ( object -- ? )
Vocabulary
cpu
.
architecture
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
representation
class.
Definition
USING:
kernel
;
IN:
cpu.architecture
:
representation?
( object -- ? )
dup
scalar-rep?
[
drop
t
]
[
dup
vector-rep?
[
drop
t
]
[
dup
double-rep?
[
drop
t
]
[
dup
float-rep?
[
drop
t
]
[
dup
int-rep?
[
drop
t
]
[
dup
tagged-rep?
~quotation~ ~quotation~
if
]
if
]
if
]
if
]
if
]
if
;