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 WAA12165; Tue, 5 Oct 2004 22:31:54 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA15650 for ; Tue, 5 Oct 2004 22:31:53 +0200 (MET DST) Received: from smtp-bedford.mitre.org (smtp-bedford-x.mitre.org [192.160.51.76]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id i95KVqQC009993 for ; Tue, 5 Oct 2004 22:31:52 +0200 Received: from smtp-bedford.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford.mitre.org (8.11.6/8.11.6) with SMTP id i95KVk819381 for ; Tue, 5 Oct 2004 16:31:46 -0400 Received: from smtp-bedford.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford.mitre.org (Postfix) with ESMTP id 9DCD6BF84 for ; Tue, 5 Oct 2004 16:31:46 -0400 (EDT) Received: from MAILHUB2 (mailhub2.mitre.org [129.83.221.18]) by smtp-bedford.mitre.org (8.11.6/8.11.6) with ESMTP id i95KVka19345 for ; Tue, 5 Oct 2004 16:31:46 -0400 Received: from mm125609-pc.mitre.org (129.83.35.110) by mailhub2.mitre.org with SMTP id 5074365; Tue, 05 Oct 2004 16:31:40 -0400 Message-ID: <416304AC.5070405@mitre.org> Date: Tue, 05 Oct 2004 16:31:40 -0400 From: Shaddin Doghmi User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 MultiZilla/1.6.4.0b X-Accept-Language: en MIME-Version: 1.0 To: caml-list@inria.fr Subject: [Caml-list] private methods too private? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 416304B8.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; objects:02 object:03 object:03 mitre:09 something:09 inside:10 too:16 but:16 visible:17 methods:17 methods:17 possible:18 else:20 what:21 way:26 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Private methods in an object are visible only inside that object. I would like to have methods that can be invoked by other objects of that class, but not anywhere else. Is it possible to do something like this, and if so what is the preferred way to do it? ------------------- 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