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 UAA26386; Mon, 21 Oct 2002 20:40:47 +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 UAA26697 for ; Mon, 21 Oct 2002 20:40:46 +0200 (MET DST) Received: from wetware.wetware.com (wetware.wetware.com [199.108.16.1]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g9LIeiD14975; Mon, 21 Oct 2002 20:40:44 +0200 (MET DST) Received: from wetware.com(ra01.wetware.com[199.108.16.81]) (1525 bytes) by wetware.wetware.com via sendmail with P:esmtp/R:bind_hosts/T:inet_zone_bind_smtp (sender: ) id for ; Mon, 21 Oct 2002 11:40:43 -0700 (PDT) (Smail-3.2.0.114 2001-Aug-6 #1 built 2002-Sep-2) Date: Mon, 21 Oct 2002 11:40:45 -0700 Subject: Re: [Caml-list] functional objects Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v546) Cc: The Trade To: Didier.Remy@inria.fr From: james woodyatt In-Reply-To: <20021021085502.A9551@morgon.inria.fr> Message-Id: <9C142CDC-E524-11D6-8FFC-000393BA7EBA@wetware.com> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.546) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sunday, Oct 20, 2002, at 23:55 US/Pacific, Didier Remy wrote: > [I wrote:] >> What would that look like in the multiple inheritance case? > > Have you really tried this exercise yourself before asking for help? I'm very sorry. Sincere apologies. I mistakenly assumed, since the documentation does not explicitly say that the inherit clause defines a constructor method named after the superclass, that your examples would not compile. Surprisingly, they actually do in ocaml-3.06. It's not the most pleasant syntax I could imagine, but I'm very pleased to see that it's already possible to do what I want. I have a suspicion, though, that the implementation makes a lot of temporary copies in this process. Is that so? Oh, never mind. I'll find out for myself. Thanks for all your help. -- j h woodyatt markets are only free to the people who own them. ------------------- 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