From: Christophe Raffalli <christophe.raffalli@univ-savoie.fr>
To: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
Cc: ecc@cmu.edu, caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Invoking the standard library ?
Date: Wed, 30 Apr 2008 09:51:00 +0200 [thread overview]
Message-ID: <481824E4.1020109@univ-savoie.fr> (raw)
In-Reply-To: <20080430.090541.77051652.garrigue@math.nagoya-u.ac.jp>
[-- Attachment #1: Type: text/plain, Size: 1636 bytes --]
Jacques Garrigue a écrit :
> From: Eric Cooper <ecc@cmu.edu>
> Subject: Re: [Caml-list] Invoking the standard library ?
> Date: Tue, 29 Apr 2008 14:19:58 -0400
>
>> On Tue, Apr 29, 2008 at 04:26:45PM +0200, David Teller wrote:
>>> modules String, Stream, etc. For this, I need to include the original
>>> module, as provided in the standard library, and add stuff. Now, the
>>> trick is that I'd like to keep the same name as the original module.
>> My first thought was that the usual shadowing of bindings could
>> be used, and indeed the following works fine in the toplevel:
>>
A very simple solution (that I use for PML) would be to change ocaml
so that a directory in the path is considered as a module whose fields are
the modules and directory inside it ... This allows two files to have the same name
and depending if you open or not the module/directory containing an extended string library,
you can access by open String the original or the extended module.
You can even decide that it is possible to assign a .mli file to a directory to hide some
modules inside it ...
Christophe
--
Christophe Raffalli
Universite de Savoie
Batiment Le Chablais, bureau 21
73376 Le Bourget-du-Lac Cedex
tel: (33) 4 79 75 81 03
fax: (33) 4 79 75 87 42
mail: Christophe.Raffalli@univ-savoie.fr
www: http://www.lama.univ-savoie.fr/~RAFFALLI
---------------------------------------------
IMPORTANT: this mail is signed using PGP/MIME
At least Enigmail/Mozilla, mutt or evolution
can check this signature. The public key is
stored on www.keyserver.net
---------------------------------------------
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
next prev parent reply other threads:[~2008-04-30 7:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-29 14:26 David Teller
2008-04-29 18:19 ` [Caml-list] " Eric Cooper
2008-04-30 0:05 ` Jacques Garrigue
2008-04-30 7:51 ` Christophe Raffalli [this message]
2008-04-30 13:38 ` Eric Cooper
2008-05-01 1:59 ` Gordon Henriksen
2008-04-30 11:35 ` David Teller
[not found] ` <003a01c8aa2c$5962f6c0$017ca8c0@countertenor>
2008-04-29 19:50 ` David Teller
2008-04-29 22:58 ` Ashish Agarwal
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=481824E4.1020109@univ-savoie.fr \
--to=christophe.raffalli@univ-savoie.fr \
--cc=caml-list@yquem.inria.fr \
--cc=ecc@cmu.edu \
--cc=garrigue@math.nagoya-u.ac.jp \
/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).