From: Damien Doligez <damien.doligez@inria.fr>
To: "Grégoire Sutre" <sutre@labri.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Error compiling classes with ocamlcp?
Date: Wed, 27 Nov 2002 14:02:24 +0100 [thread overview]
Message-ID: <791D4B6A-0208-11D7-8024-0003930FCE12@inria.fr> (raw)
In-Reply-To: <20021126192549.F40547E76@iona.labri.fr>
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.
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.
-- Damien
-------------------
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
next prev parent reply other threads:[~2002-11-27 13:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-26 19:25 Grégoire Sutre
2002-11-27 13:02 ` Damien Doligez [this message]
2002-11-27 14:03 ` [Caml-list] OCAMAWEB release lehalle@miriad
2002-11-27 19:16 ` [Caml-list] Error compiling classes with ocamlcp? Grégoire Sutre
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=791D4B6A-0208-11D7-8024-0003930FCE12@inria.fr \
--to=damien.doligez@inria.fr \
--cc=caml-list@inria.fr \
--cc=sutre@labri.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox