Handbook
Glossary
>vectored-slot ( struct-slot offset -- tuple-slot )
Vocabulary
classes
.
struct
.
vectored
.
private
Inputs
struct-slot
an
object
offset
an
object
Outputs
tuple-slot
an
object
Definition
USING:
accessors
combinators
kernel
slots
;
IN:
classes.struct.vectored.private
:
>vectored-slot
( struct-slot offset -- tuple-slot )
{
[
drop
name>>
]
[
nip
]
[
drop
type>>
array-class-of
dup
initial-value
drop
]
[
2drop
t
]
}
2cleave
slot-spec
boa
;