From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 05122BB84 for ; Mon, 16 Jun 2008 06:31:43 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: An4BAHSJVUjAXQImiGdsb2JhbACSHgEBAQ8gmT0 X-IronPort-AV: E=Sophos;i="4.27,650,1204498800"; d="scan'208";a="14040077" Received: from discorde.inria.fr ([192.93.2.38]) by mail3-smtp-sop.national.inria.fr with ESMTP; 16 Jun 2008 06:31:43 +0200 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id m5G4Vhis012983 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 16 Jun 2008 06:31:43 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlkAAOuIVUiD1+8TfGdsb2JhbACSHgEBCwUIBw4ImTY X-IronPort-AV: E=Sophos;i="4.27,650,1204498800"; d="scan'208";a="12097031" Received: from outgoing-mail.its.caltech.edu ([131.215.239.19]) by mail2-smtp-roc.national.inria.fr with ESMTP; 16 Jun 2008 06:31:42 +0200 Received: from earth-dog.its.caltech.edu (earth-dog [192.168.1.3]) by fire-ox-postvirus (Postfix) with ESMTP id 63FEC13DBC; Sun, 15 Jun 2008 21:31:40 -0700 (PDT) Received: from [192.168.1.100] (netblock-208-127-159-66.dslextreme.com [208.127.159.66]) (Authenticated sender: mvanier) by water-ox.its.caltech.edu (Postfix) with ESMTP id 07A291BA05; Sun, 15 Jun 2008 21:31:37 -0700 (PDT) Message-ID: <4855ECA9.6050505@cs.caltech.edu> Date: Sun, 15 Jun 2008 21:31:37 -0700 From: Michael Vanier User-Agent: Thunderbird 2.0.0.14 (X11/20080421) MIME-Version: 1.0 To: Christophe TROESTLER Cc: "caml-list@inria.fr" , steph@glondu.net Subject: Re: [Caml-list] changing the name of an imported module References: <4854A04C.1080301@cs.caltech.edu> <20080615.132720.1063581437566804413.Christophe.Troestler+ocaml@umh.ac.be> In-Reply-To: <20080615.132720.1063581437566804413.Christophe.Troestler+ocaml@umh.ac.be> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 4855ECAF.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; vanier:01 mvanier:01 christophe:01 troestler:01 vanier:01 ocaml:01 haskell's:01 python's:01 foobar:01 cheers:01 wrote:01 wrote:01 unix:01 unix:01 caml-list:01 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