Handbook
Glossary
obj-ref
Factor handbook
»
The language
»
Collections
»
References
»
Reference implementations
Next:
<obj-ref> ( obj -- obj-ref )
Vocabulary
refs
Class description
Instances of this class contain a value which can be changed using the
Reference protocol
. New object references are created by calling
<obj-ref>
.
Definition
IN:
refs
TUPLE:
obj-ref
obj
;
Methods
USING:
accessors
refs
;
M:
obj-ref
get-ref
obj>>
;
USING:
accessors
refs
;
M:
obj-ref
set-ref
obj<<
;