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] CTAN/CPAN for Caml (COCAN ...?)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-07-18 (15:46)
From: Stefano Zacchiroli <zack@b...>
Subject: Re: [Caml-list] CTAN/CPAN for Caml (COCAN ...?)
On Fri, Jul 18, 2003 at 09:42:52AM +0100, Richard Jones wrote:
> There seems to be an informal standard right now. eg. camlimages which
> I've been wrestling with all week:
> $OCAMLLIB/camlimages/ contains the code and names top-level module
> names. To compile you just use ocamlc -I +camlimages ...

Such a standard ensure no safety.

A naming schema should be used for all modules whose interfaces are used
in the final objects against which link to.

Camlimages itself is a good example of this property _not_ enforced
because it is named "camlimages", exports a lot of modules prefixed by
"ci_" but internally uses an "Image" module which MD5 sum is present in
all "ci_" modules.

An "image" module is shipped also by labltk which obviously, being a
different piece of software, has a different MD5 sum and can't be linked
along with camlimages.

A naming schema should be enforced not only for the toplevel library
modules, but for all modules being part of it.


Stefano Zacchiroli  --  Master in Computer Science @ Uni. Bologna, Italy
zack@{,,}  -
"  I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!  " -- G.Romney

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: