OCaml's OOP: self, public and cached methods

Can anyone explain to me the difference between self, public and cached methods as far as the OCaml compiler is concerned? I haven’t found explanations in comments or on the web of these concepts in the compiler, and I’m really curious.

3 Likes

Sending out a second request for anyone knowledgeable on this topic. @yallop? @stedolan?