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 BAA26140; Tue, 16 Jul 2002 01:06:46 +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 BAA26130 for ; Tue, 16 Jul 2002 01:06:45 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from athlon.baretta.com (r-mi214-6a227.tin.it [62.211.4.227]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g6FN6hj13013 for ; Tue, 16 Jul 2002 01:06:44 +0200 (MET DST) Received: from baretta.com (localhost.localdomain [127.0.0.1]) by athlon.baretta.com (Postfix) with ESMTP id E49EE273C4 for ; Tue, 16 Jul 2002 01:13:45 +0200 (CEST) Message-ID: <3D335729.3020307@baretta.com> Date: Tue, 16 Jul 2002 01:13:45 +0200 From: Alessandro Baretta Organization: Baretta srl -- www.baretta.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: it, en MIME-Version: 1.0 To: Ocaml Subject: [Caml-list] Recovering masked methods Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I have code similar to the following class a = object (self) method m = 1 method n = "Hello!" end class b = object (self) inherit a as super_a method m = 2 end Now I would like to define a third class, inheriting from b. I need this class to be able to access the definition of method m from class a, otherwise I would have to use "copy & paste", which is contrary to my programmer's ethics. Ideally, I would like to write class c = object (self) inherit b as super_b method m = (* some_stuff *) super_b # super_a # m end Presently, this is not allowed. Is there any specific reason for this? Could such a feature be implemented in the future? Alex ------------------- 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