[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Emmanuel Filiot <emmanuelfiliot@w...> |
| Subject: | [Caml-list] .ml and .mli |
Hello all,
I have noticed that we must copy code between .ml and .mli, and I wonder
if there exists a solution for this problem. I explain:
For example, I have some files such that :
toto.mli
module type S = sig type t end
module A : S with type t = int
toto.ml
module type S = sig type t end
module A = struct type t = int let id x = x end
tutu.ml
open Toto
module B : S = struct .... end
I must copy "module type S = sig...." in both toto.ml and toto.mli.
Thanks
Emmanuel
-------------------
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