English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] code duplication when abstracting using explicit signatures
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-03-23 (00:52)
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