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