caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Christophe Raffalli <Christophe.Raffalli@univ-savoie.fr>
To: David Rajchenbach-Teller <David.Teller@ens-lyon.org>
Cc: Caml <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] About namespaces
Date: Thu, 20 Nov 2008 22:57:23 +0100	[thread overview]
Message-ID: <4925DD43.1000700@univ-savoie.fr> (raw)
In-Reply-To: <1227216556.7676.31.camel@Blefuscu>


[-- Attachment #1.1: Type: text/plain, Size: 923 bytes --]

And what about include (it is your import) ? It allows what you want and
is short ?


module Mylist = struct
  let id x = x
end

module Hislist = struct
  let id2 x = x
end

module Alllist = struct
  include Mylist
  include Hislist
end

What is really missing is renaming when opening or doing include (with
regular expression pattern matching for instance).

Cheers,
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 #1.2: Christophe_Raffalli.vcf --]
[-- Type: text/x-vcard, Size: 310 bytes --]

begin:vcard
fn:Christophe Raffalli
n:Raffalli;Christophe
org:LAMA (UMR 5127)
email;internet:christophe.raffalli@univ-savoie.fr
title;quoted-printable:Ma=C3=AEtre de conf=C3=A9rences
tel;work:+33 4 79 75 81 03
note:http://www.lama.univ-savoie.fr/~raffalli
x-mozilla-html:TRUE
version:2.1
end:vcard


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]

  reply	other threads:[~2008-11-20 21:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-20 21:29 David Rajchenbach-Teller
2008-11-20 21:57 ` Christophe Raffalli [this message]
2008-11-21  9:24   ` [Caml-list] " David Rajchenbach-Teller
2008-11-22 19:30 ` 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=4925DD43.1000700@univ-savoie.fr \
    --to=christophe.raffalli@univ-savoie.fr \
    --cc=David.Teller@ens-lyon.org \
    --cc=caml-list@yquem.inria.fr \
    /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).