3 (* TypeClass via objects. Cf also now interfaces.ml
5 * todo? get more inspiration from Java to put fundamental interfaces
6 * here ? such as cloneable, equaable, showable, debugable, etc
11 method invariant
: unit -> unit = fun () ->
13 (* method check: unit -> unit = fun () ->
14 assert(o#invariant());
17 method of_string
: string -> unit =
19 method to_string
: unit -> string =
21 method debug
: unit -> unit =
24 method misc_op_hook
: unit -> 'o
=
27 method misc_op_hook2
: unit =