From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: weis Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id IAA15935 for caml-redistribution; Tue, 26 Oct 1999 08:44:09 +0200 (MET DST) 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 VAA17071 for ; Mon, 25 Oct 1999 21:34:21 +0200 (MET DST) Received: from mail5.svr.pol.co.uk (mail5.svr.pol.co.uk [195.92.193.20]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id VAA20946 for ; Mon, 25 Oct 1999 21:34:19 +0200 (MET DST) Received: from modem-86.risperdal.dialup.pol.co.uk ([62.136.86.214] helo=toy.william.bogus) by mail5.svr.pol.co.uk with esmtp (Exim 2.12 #2) id 11fpso-000462-00 for caml-list@inria.fr; Mon, 25 Oct 1999 20:34:18 +0100 Received: (from williamc@localhost) by toy.william.bogus (8.8.7/8.8.7) id UAA11747; Mon, 25 Oct 1999 20:31:55 +0100 Date: Mon, 25 Oct 1999 20:31:55 +0100 Message-Id: <199910251931.UAA11747@toy.william.bogus> From: William Chesters MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: caml-list@inria.fr Subject: Very very short question on objects In-Reply-To: <19991025114616.B226@jones.int-evry.fr> References: <19991025114616.B226@jones.int-evry.fr> X-Mailer: VM 6.34 under Emacs 20.2.1 Sender: weis Christian RINDERKNECHT writes: > Method [f] is not private... Shouldn't be this an error? It's deliberate: from node3.html#ss:private-methods in the html docs: Private methods can be made public in a subclass. [...] One could think that a private method should remain private in a subclass. However, it since the method is visible in a subclass, it is always possible pick it's code and define a method of the same name that run that code, [...] In other words, ocaml's `private' is more like Java's `protected', and afair Java's behaviour here agrees with ocaml's.