Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: -- (:)
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 AFAIR you can only put types
> in example_types, not even exceptions.

And making that 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 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 Archives:
Bug reports: FAQ:
Beginner's list: