English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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.