From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id BAA25457; Sun, 21 Jul 2002 01:08:12 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA25484 for ; Sun, 21 Jul 2002 01:08:11 +0200 (MET DST) Received: from day.its.uiowa.edu (day.its.uiowa.edu [128.255.56.107]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g6KN89v22358 for ; Sun, 21 Jul 2002 01:08:10 +0200 (MET DST) Received: from uiowa.edu (host38-92.uihc.uiowa.edu [129.255.38.92]) by day.its.uiowa.edu (8.11.6/8.11.6/ns-mx-1.14) with ESMTP id g6KN87521500 for ; Sat, 20 Jul 2002 18:08:08 -0500 Message-ID: <3D39ED57.8010403@uiowa.edu> Date: Sat, 20 Jul 2002 18:08:07 -0500 From: Brian Smith User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1a) Gecko/20020611 X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: [Caml-list] Protected methods References: <3D369B89.1030000@baretta.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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. Thanks, Brian ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners