Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* Checking an interface against an implementation
@ 2005-12-05 10:24 Daniel Bünzli
  2005-12-05 11:46 ` [Caml-list] " Richard Jones
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Bünzli @ 2005-12-05 10:24 UTC (permalink / raw)
  To: caml-list

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-12-05 14:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-05 10:24 Checking an interface against an implementation Daniel Bünzli
2005-12-05 11:46 ` [Caml-list] " Richard Jones
2005-12-05 14:00   ` Daniel Bünzli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox