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 KAA18391; Thu, 28 Nov 2002 10:16:51 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA18373 for caml-list@pauillac.inria.fr; Thu, 28 Nov 2002 10:16:50 +0100 (MET) 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 UAA03801 for ; Wed, 27 Nov 2002 20:16:02 +0100 (MET) Received: from iona.labri.fr (iona.labri.fr [147.210.8.143]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id gARJG2124485; Wed, 27 Nov 2002 20:16:02 +0100 (MET) Received: from localhost (localhost.localdomain [127.0.0.1]) by iona.labri.fr (Postfix) with ESMTP id F03647E45; Wed, 27 Nov 2002 20:16:01 +0100 (CET) Received: from there (dune.labri.fr [147.210.8.213]) by iona.labri.fr (Postfix) with SMTP id EB8927E38; Wed, 27 Nov 2002 20:16:00 +0100 (CET) Content-Type: text/plain; charset="iso-8859-1" From: =?iso-8859-1?q?Gr=E9goire=20Sutre?= Organization: LaBRI - CNRS To: Damien Doligez Subject: Re: [Caml-list] Error compiling classes with ocamlcp? Date: Wed, 27 Nov 2002 20:16:00 +0100 X-Mailer: KMail [version 1.3.1] References: <791D4B6A-0208-11D7-8024-0003930FCE12@inria.fr> In-Reply-To: <791D4B6A-0208-11D7-8024-0003930FCE12@inria.fr> Cc: caml-list@inria.fr MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20021127191600.EB8927E38@iona.labri.fr> X-Virus-Scanned: by AMaViS new-20020517 X-Razor-id: 1a7f1642d440e42c57e7422b0eeb0c704375539a Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wednesday 27 November 2002 14:02, you wrote: > On Tuesday, Nov 26, 2002, at 20:25 Europe/Paris, Grégoire Sutre wrote: > > class my_class = > > object > > method do_nothing = () > > end > > > > The command "ocamlcp -c ocamlcp-pb.ml" gives: > > [...] > > > This generated file indeed doesn't compile with ocamlc. I am using > > the OCaml > > distribution version 3.06. Doesn't ocamlcp support objects? > > There are two problems here: > > 1. A known bug (PR#1464) fixed in the working version. Mail me if you > want a specific patch. Thanks. I don't need it right now (I was just playing around with it to support it in my Makefile). I'll wait for the next release. > 2. You called your file "ocamlcp-pb.ml", which is incorrect. O'Caml > uses > the capitalized file name as the module name for this file, thus all > O'Caml source file names must be alphanumeric and start with a > lowercase > letter. Otherwise, you will run into problems sooner or later. Oh, right. I actually changed this file's name when trying to pinpoint the problem... Thanks for the quick and efficient answer, Gregoire Sutre. ------------------- 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