CORE_TYPES.ref_counted
A mix-in to help with writing reference-counted objects. It will call self#release when the ref-count reaches zero.
self#release
method private virtual release : unit
method virtual pp : Stdlib.Format.formatter -> unit
method private pp_refcount : Stdlib.Format.formatter -> unit
Write the current ref-count to the formatter (use with "%t").
"%t"
method private check_refcount : unit
Raise an exception if the ref-count is less than one (i.e. check that the object hasn't already been freed).
method update_rc : int -> unit
method check_invariants : unit
method virtual blocker : base_ref option
method sealed_dispatch : 'a. 'a brand -> 'a option