Dear all:

In ref manual of ocaml "3.10 Parameterized classes", there is a code segment liek this:

class ref (x_init:int) =
object
val mutable x = x_init
method get = x
method set y = x <- y
end;;

so what is the meaning of class ref?


Shen