Handbook
Glossary
get-ref ( ref -- obj )
Factor handbook
»
The language
»
Collections
»
References
»
Reference protocol
Next:
set-ref ( obj ref -- )
Vocabulary
refs
Inputs
ref
a
ref
Outputs
obj
an
object
Word description
Outputs the value pointed at by this reference.
See also
set-ref
,
set-ref*
Definition
IN:
refs
GENERIC:
get-ref
( ref -- obj )
Methods
USING:
boxes
refs
;
M:
box
get-ref
box>
;
USING:
accessors
namespaces
refs
;
M:
global-var-ref
get-ref
var>>
get-global
;
USING:
accessors
refs
;
M:
key-ref
get-ref
key>>
;
USING:
accessors
refs
;
M:
obj-ref
get-ref
obj>>
;
USING:
refs
slots.private
;
M:
slot-ref
get-ref
>slot-ref<
slot
;
USING:
assocs
refs
;
M:
value-ref
get-ref
>assoc-ref<
at
;
USING:
accessors
namespaces
refs
;
M:
var-ref
get-ref
var>>
get
;