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
Invoking the standard library ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-05-01 (02:00)
From: Gordon Henriksen <gordonhenriksen@m...>
Subject: Re: [Caml-list] Invoking the standard library ?
On Apr 30, 2008, at 09:38, Eric Cooper wrote:

> On Wed, Apr 30, 2008 at 09:51:00AM +0200, Christophe Raffalli wrote:
>> A very simple solution (that I use for PML) would be to change ocaml
>> so that a directory in the path is considered as a module whose
>> fields are the modules and directory inside it ... This allows two
>> files to have the same name and depending if you open or not the
>> module/directory containing an extended string library, you can
>> access by open String the original or the extended module.
> I like this approach -- very elegant.

Note that ocamlopt uses the module name as an entry point and  
including multiple modules with the same name will cause linkage  

— Gordon