Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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

Cheers,
ChriS