Handbook
Glossary
slot-ref
Factor handbook
»
The language
»
Collections
»
References
»
Reference implementations
Prev:
<global-var-ref> ( var -- global-var-ref )
Next:
<slot-ref> ( tuple slot -- slot-ref )
Vocabulary
refs
Class description
Instances of this class identify a particular slot of a particular instance of a tuple. New slot references are created by calling
<slot-ref>
.
Definition
IN:
refs
TUPLE:
slot-ref
tuple slot
;
Methods
USING:
refs
slots.private
;
M:
slot-ref
get-ref
>slot-ref<
slot
;
USING:
refs
slots.private
;
M:
slot-ref
set-ref
>slot-ref<
set-slot
;