From: Christophe TROESTLER <Christophe.Troestler@umh.ac.be>
To: "O'Caml Mailing List" <caml-list@inria.fr>
Subject: [Caml-list] Hidden .cmo conflict?
Date: Sun, 07 Mar 2004 06:35:15 +0100 (CET) [thread overview]
Message-ID: <20040307.063515.97674881.Christophe.Troestler@umh.ac.be> (raw)
Hi everybody,
Let us imagine I build two libs A and B. Say that each lib is
implemented respectively by a a.ml and a b.ml file togeter with
utility fonctions splitted into a u.ml file. This u.ml file is
different for A and B. I.e.,
a.cma <-- a.cmo u.cmo
b.cma <-- b.cmo u.cmo
The two u are different and not exported in a.cmi or b.cmi. If then I
compile a program, say p.ml, which needs both libs A and B :
ocamlc -o p.exe a.cma b.cma p.ml
I have no problem. But if I have the bad idea of splitting again
utilities functions for p.ml into a u.ml file, I will get a
"...inconsistent assumptions over interface...", right? Is there a
solution to this problem (which could really be puzzling because A and
B might have been written by somebody else and I may not know about
their "u" as it is not exported)? Can one really hide a .cmo one does
not export in the .mli?
ChriS
-------------------
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
reply other threads:[~2004-03-07 5:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20040307.063515.97674881.Christophe.Troestler@umh.ac.be \
--to=christophe.troestler@umh.ac.be \
--cc=caml-list@inria.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