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
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