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 JAA26030; Wed, 13 Oct 2004 09:35:07 +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 JAA26008 for ; Wed, 13 Oct 2004 09:35:06 +0200 (MET DST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i9D7Z4Hp008797 for ; Wed, 13 Oct 2004 09:35:05 +0200 Received: from [192.168.1.200] (ppp202-150.lns1.syd3.internode.on.net [203.122.202.150]) by smtp1.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id i9D7Yx4Y000851; Wed, 13 Oct 2004 17:04:59 +0930 (CST) Subject: Re: [Caml-list] Narrowing class's public interface From: skaller Reply-To: skaller@users.sourceforge.net To: John Prevost Cc: caml-list In-Reply-To: References: <200410131116.12485.edgin@slingshot.co.nz> <20041013.094903.08315159.garrigue@kurims.kyoto-u.ac.jp> <1097634426.19740.152.camel@pelican.wigram> Content-Type: text/plain Message-Id: <1097652898.19740.198.camel@pelican.wigram> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 13 Oct 2004 17:34:59 +1000 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 416CDAA8.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 narrowing:01 class's:01 sourceforge:01 2004:99 prevost:01 2004:99 sourceforge:01 covariant:01 steel:99 9660:01 glebe:01 inherit:01 nsw:01 snail:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, 2004-10-13 at 16:39, John Prevost wrote: > On 13 Oct 2004 12:27:07 +1000, skaller wrote: > {...} > > Hence OO is useless as a general paradigm. {...} > Er. You're overstating the case here. I said OO is useless as general paradigm, I meant that and I don't think it is overstated. I also said objects have a limited use, where you don't need covariant methods. In such cases, you get dynamic (late) binding which is indeed very useful. ---> class type supercow = object inherit cow method fly : unit -> unit end <---- ... runs out to buy steel umbrella ... -- John Skaller, mailto:skaller@users.sf.net voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net ------------------- 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