Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Protected methods
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Brian Smith <brian-l-smith@u...>
Subject: Re: [Caml-list] Protected methods
Dmitry Bely wrote:
 > Do not private Ocaml methods have in fact "protected" C++ semantics?
 > They cannot be called directly but can be used in methods of inherited
 > classes...

This was my impression as well. I think it would be a good idea to add
something to the FAQ about how UML-ish/Java-ish
private/protected/public/package visibility maps to O'Caml. And, if
there isn't a direct mapping in some cases, then perhaps explanations of
"workarounds" like the ones presented in this thread.


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: