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-04-30 (13:38)
From: Eric Cooper <ecc@c...>
Subject: Re: [Caml-list] Invoking the standard library ?
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.

Eric Cooper             e c c @ c m u . e d u