Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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 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