Handbook
Glossary
get-slot-named ( name tuple -- value )
Vocabulary
classes
.
tuple
Inputs
name
a
string
tuple
a
tuple
Outputs
value
an
object
Word description
Returns the
value
stored in a tuple slot accessed by
name
.
Errors
Throws a
no-slot
error if no slot with that name.
Definition
USING:
kernel
slots.private
;
IN:
classes.tuple
:
get-slot-named
( name tuple -- value )
[
nip
]
[
offset-of-slot
]
2bi
slot
;