Reference protocol
Factor handbook » The language » Collections » References

Next:Reference implementations


To use a class of objects as references you must implement the reference protocol for that class, and mark your class as an instance of the ref mixin class. All references must implement these two words:
get-ref ( ref -- obj )

set-ref ( obj ref -- )


References may also implement:
delete-ref ( ref -- )