caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Michael Vanier <mvanier@cs.caltech.edu>
To: Christophe TROESTLER <Christophe.Troestler+ocaml@umh.ac.be>
Cc: "caml-list@inria.fr" <caml-list@inria.fr>, steph@glondu.net
Subject: Re: [Caml-list] changing the name of an imported module
Date: Sun, 15 Jun 2008 21:31:37 -0700	[thread overview]
Message-ID: <4855ECA9.6050505@cs.caltech.edu> (raw)
In-Reply-To: <20080615.132720.1063581437566804413.Christophe.Troestler+ocaml@umh.ac.be>

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


  reply	other threads:[~2008-06-16  4:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-15  4:53 Michael Vanier
2008-06-15 11:17 ` [Caml-list] " Stéphane Glondu
2008-06-15 11:27 ` Christophe TROESTLER
2008-06-16  4:31   ` Michael Vanier [this message]
2008-06-16 14:47     ` Christophe TROESTLER

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4855ECA9.6050505@cs.caltech.edu \
    --to=mvanier@cs.caltech.edu \
    --cc=Christophe.Troestler+ocaml@umh.ac.be \
    --cc=caml-list@inria.fr \
    --cc=steph@glondu.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).