Browse thread
[Caml-list] code duplication when abstracting using explicit signatures
-
Jeffrey J. Cook
-
Michal Moskal
- brogoff@s...
-
Michal Moskal
[
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: | brogoff@s... |
| Subject: | Re: [Caml-list] code duplication when abstracting using explicit signatures |
On Sat, 22 Mar 2003, Michal Moskal wrote: > Use example_types.mli and example.ml/mli. AFAIR you can only put types > in example_types, not even exceptions. And making that example_types.ml instead of .mli will allow exceptions (and values!), but I'd prefer having a pure .mli file as you suggest, and just creating a fourth file example_exns.ml for any example exceptions. Is this "extra interface file" trick in the FAQ yet? This is one of those things that bugged me a bit when I was first learning OCaml, but it's no longer an issue. -- Brian ------------------- 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