From: Christophe TROESTLER <debian00@tiscali.be>
To: Markus MOTTL <markus.mottl@gmail.com>
Cc: "O'Caml Mailing List" <caml-list@inria.fr>
Subject: Re: [Caml-list] Renaming structures during inclusions?
Date: Wed, 11 May 2005 18:33:19 +0200 (CEST) [thread overview]
Message-ID: <20050511.183319.06547596.debian00@tiscali.be> (raw)
In-Reply-To: <f8560b80505110844611fcfbd@mail.gmail.com>
On Wed, 11 May 2005, Markus Mottl <markus.mottl@gmail.com> wrote:
>
> The above is not possible, because the names for type t in M1 and M2,
> and the module names for module Std clash.
Wouldn't it be better to have a compiler switch (say "-w T/t", off by
default) to overide that behavior (new definitions override old ones
as with [open])? Of course that makes it impossible to write M1
signature without aliasing [t] and [Std] but IMHO that's fine. This
way, no new syntax needs to be introduced (and one is not forced to
alias modules one does not care about -- e.g. utilities).
module M = struct
include M1
type m1_t = M1.t
module M1Std = M1.Std
include M2
type m2_t = M2.t
module M2Std = M2.Std
module Std = struct
include M1.Std
include M2.Std
end
end
My 2¢,
ChriS
next prev parent reply other threads:[~2005-05-11 16:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-11 15:44 Markus Mottl
2005-05-11 16:33 ` Christophe TROESTLER [this message]
2005-05-11 17:11 ` [Caml-list] " Andreas Rossberg
2005-05-11 18:02 ` Markus Mottl
2005-05-12 14:24 ` Andreas Rossberg
2005-05-11 18:16 ` Christophe TROESTLER
2005-05-12 1:24 ` Jacques Garrigue
[not found] ` <f8560b80505120836681ab281@mail.gmail.com>
2005-05-12 17:09 ` Markus Mottl
2005-05-12 15:26 ` Norman Ramsey
2005-05-12 20:02 ` Aleksey Nogin
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=20050511.183319.06547596.debian00@tiscali.be \
--to=debian00@tiscali.be \
--cc=caml-list@inria.fr \
--cc=markus.mottl@gmail.com \
/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