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
About namespaces
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-11-21 (09:24)
From: David Rajchenbach-Teller <David.Teller@e...>
Subject: Re: [Caml-list] About namespaces
On Thu, 2008-11-20 at 22:57 +0100, Christophe Raffalli wrote:
> And what about include (it is your import) ? It allows what you want and
> is short ?

No, [include] is the low-level mechanism which must be used to implement
the higher-level [import]. The main difference being that [import] needs
to read information from all the (findlib) packages which are being used
to compile your project and determine all the modules from each package
which are registered as providing [List]. The programmer doesn't need to
know the exact name of each module.

Does that make things any clearer?


David Teller-Rajchenbach
 Security of Distributed Systems
 Angry researcher: French Universities need reforms, but the LRU act brings liquidations.