From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 36AA4BBC1 for ; Thu, 21 Feb 2008 10:42:53 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAALDWvEfa1uFinmdsb2JhbACQXQEBAQEBBgQGBwoYnmwE X-IronPort-AV: E=Sophos;i="4.25,385,1199660400"; d="scan'208";a="7531368" Received: from smtp.syd.people.net.au ([218.214.225.98]) by mail2-smtp-roc.national.inria.fr with SMTP; 21 Feb 2008 10:42:51 +0100 Received: (qmail 4505 invoked from network); 21 Feb 2008 09:43:03 -0000 Received: from unknown (HELO hendrix.mega-nerd.net) (218.214.64.136) by smtp.syd.people.net.au with SMTP; 21 Feb 2008 09:43:03 -0000 Received: from hendrix (hendrix [192.168.200.99]) by hendrix.mega-nerd.net (Postfix) with SMTP id C8C0DAD81B; Thu, 21 Feb 2008 20:42:47 +1100 (EST) Date: Thu, 21 Feb 2008 20:42:47 +1100 From: Erik de Castro Lopo To: Tiphaine Turpin Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] OO programming Message-Id: <20080221204247.14a618c2.mle+ocaml@mega-nerd.com> In-Reply-To: <47BD44FE.3050001@irisa.fr> References: <47BD44FE.3050001@irisa.fr> Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed 2.4.5 (GTK+ 2.12.0; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; ocaml:01 ocaml:01 typecheck:01 vastly:01 ocaml's:01 wrote:01 caml-list:01 python:03 languages:03 programming:03 programming:03 erik:04 erik:04 tries:07 oriented:07 Tiphaine Turpin wrote: > After a few unsuccessfull tries with using the object oriented features > of ocaml, I have been looking for ways to write classes that have a > chance to typecheck. OO in Ocaml is vastly different from OO in languages you might be used to like Java, C++, Python etc. If you are new to Ocaml, I highly recommend you forget about using Ocaml's OO features until you feel comfortable with the base features of the language. Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- "Projects promoting programming in natural language are intrinsically doomed to fail." -- Edsger Dijkstra