From: Christophe Raffalli <Christophe.Raffalli@univ-savoie.fr>
To: caml-list@inria.fr
Subject: Re: More about modules
Date: Fri, 17 Mar 2000 18:11:01 +0100 [thread overview]
Message-ID: <38D26725.CCE5BFE2@univ-savoie.fr> (raw)
Xavier Leroy wrote:
> - Inclusion of structures into larger structures (in the style of
> "open" in SML): I agree this is desirable, and we already have the
> syntax for it ("struct ... include S ... end"). It requires a little
> more implementation work than exception renaming, so I'll probably do
> it for 3.01.
> Opinions?
>
> - Xavier Leroy
I really agree: the include for structure you proposed is needed.
But include Module with .... Is also really needed. Here is an example
(not reallistic):
module type Set =
sig
type elt
end
\x13
module type Morphisme =
sig
module E : Set
module F : Set
type elt = E.elt -> F.elt
end
module type Endomorphisme
sig
include Morphisme with module E = F
end
I know you can allways find another way of writing. But this is much
clearer with the "include .. with" !
--
Christophe Raffalli
Université de Savoie
Batiment Le Chablais, bureau 21
73376 Le Bourget-du-Lac Cedex
tél: (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
reply other threads:[~2000-03-17 18:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=38D26725.CCE5BFE2@univ-savoie.fr \
--to=christophe.raffalli@univ-savoie.fr \
--cc=caml-list@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