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