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 KAA27703; Fri, 19 Jul 2002 10:21:49 +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 KAA27699 for ; Fri, 19 Jul 2002 10:21:48 +0200 (MET DST) Received: from hickory.cc.columbia.edu (hickory.cc.columbia.edu [128.59.59.202]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g6J8Ll101005 for ; Fri, 19 Jul 2002 10:21:47 +0200 (MET DST) Received: from there (tw304h3.cpmc.columbia.edu [156.111.84.180]) by hickory.cc.columbia.edu (8.9.3/8.9.3) with SMTP id EAA09974; Fri, 19 Jul 2002 04:21:45 -0400 (EDT) Message-Id: <200207190821.EAA09974@hickory.cc.columbia.edu> Content-Type: text/plain; charset="iso-8859-1" From: Oleg To: Issac Trotts Subject: Re: [Caml-list] productivity improvement Date: Fri, 19 Jul 2002 04:22:49 -0400 X-Mailer: KMail [version 1.3.2] Cc: William Lovas , caml-list References: <20020716172916.4903.qmail@web10702.mail.yahoo.com> <200207190358.XAA11620@dewberry.cc.columbia.edu> <20020719010318.B3631@boson.den.co.bbnow.net> In-Reply-To: <20020719010318.B3631@boson.den.co.bbnow.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Friday 19 July 2002 03:03 am, Issac Trotts wrote: > Right, so how is your C++ compiler going to remind you when you forget to > include a needed case in the switch statement (assuming there is something > in the typeinfo to switch on; you can't switch on a string in C++.)  OCaml > will remind you, but I don't see how a C++ compiler could. Correct. Since C++ compiler can not possibly know of all existent sub-types, there is no way it can warn you. This is why virtual member functions are still preferred. Regards Oleg ------------------- 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