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: Michael Vanier <mvanier@c...>
Subject: Re: [Caml-list] changing the name of an imported module
Thanks!  That's just what I need.  Do you know if there is any performance cost to using e.g. U.f 
instead of Unix.f?  I wouldn't think so.

Mike

Christophe TROESTLER wrote:
> 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