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] Proposal for separate compilation
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-05-28 (10:14)
From: Christian Lindig <lindig@c...>
Subject: Re: [Caml-list] Proposal for separate compilation
On May 28, 2004, at 11:55 AM, Alain Frisch wrote:
> The method used for generating of the uid for a given unit can be 
> decided
> at compile time: one could compile some interfaces (like the stdlib) 
> with
> a "transparent" semantics (the uid is a hash of the name, the content 
> of
> the interface, and maybe a "salt" to be used as a namespace for the
> library), and some with a generative semantics.

When talking about the name of a module, I assume people so far refer to
"a", when the file is actually /some/where/lib/a.{ml,mli,cmi,cmo}. 
Would it make sense to consider a configurable suffix of the file's 
path instead? Say, you can tell the compiler to consider "lib/a" or 
"where/lib/a" as the module's name when computing the hash. This would 
be similar to a "salt". The longer the path, the more difficult it will 
become to move files around; hence it is a guarantee, that the file is 
used in the proper context.

-- Christian  

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