ocaml のクラスはようしらんけど……

http://caml.inria.fr/ocaml/htmlman/manual005.html

>#class adjusted_point x_init =
> let origin = (x_init / 10) * 10 in
> object
> val mutable x = origin
> method get_x = x
> method get_offset = x - origin
> method move d = x <- x + d
> end;;

とあるから、破壊代入できるような静的メンバ変数が欲しいなら

class c =
let x = ref 10 in
object
method get_x = !x
method set_x = fun y -> x := y
end

などとするほうがよいかと。外から隠せるし。

ところで破壊代入ってどうなんですかね。

関数型とオブジェクト指向と破壊代入って
そのうち任意の 2 つはそこそこ相性がいいと思うんだけど
3 つ揃うとどうかなぁと思うことが何度かあるです
みなさんどう思いますか?