From: "Daniel Bünzli" <daniel.buenzli@epfl.ch>
To: caml-list <caml-list@inria.fr>
Subject: Checking an interface against an implementation
Date: Mon, 5 Dec 2005 11:24:29 +0100 [thread overview]
Message-ID: <33E57BD4-F484-4E0B-8B23-DC84D4A3061E@epfl.ch> (raw)
Hello,
Is there a compiler invocation that allows to check that a particular
cmo or cmx implements a given cmi ?
I have some compilation units which are completely transparent to
each other (i.e no .mli). However for the final client of these units
I provide constrained interfaces specified in another directory. For
example,
mylib/a.ml
mylib/b.ml
mylib/api/a.mli
mylib/api/b.mli
Whenever I compile an .mli to a .cmi I would like to check that its
corresponding .cmo implements it. The problem is that syntactically
correct cmi always compile whithout problems. So if my .cmo doesn't
implement my .cmi I only get an (uninformative) error when I try to
actually link these units with the client.
Thanks for your answers,
Daniel
next reply other threads:[~2005-12-05 10:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-05 10:24 Daniel Bünzli [this message]
2005-12-05 11:46 ` [Caml-list] " Richard Jones
2005-12-05 14:00 ` Daniel Bünzli
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=33E57BD4-F484-4E0B-8B23-DC84D4A3061E@epfl.ch \
--to=daniel.buenzli@epfl.ch \
--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