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
changing the name of an imported module
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-06-15 (11:27)
From: Christophe TROESTLER <Christophe.Troestler+ocaml@u...>
Subject: Re: [Caml-list] changing the name of an imported module
On Sat, 14 Jun 2008 21:53:32 -0700, Michael Vanier wrote:
> Is there any way in Ocaml to change the name of an imported module,
> sort of like Haskell's "import qualified" or Python's "import foobar
> as f"?  It's certainly something I could use.

  module U = Unix

will allow to use U.f instead of Unix.f