<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2005/05/7982251841eb7d842da9dfde066e3729"
  from="Aleksey Nogin &lt;nogin@c...&gt;"
  author="Aleksey Nogin"
  date="2005-05-12T20:02:20"
  subject="Re: [Caml-list] Renaming structures during inclusions?"
  prev="2005/05/f21910b0fdba032abfe6aae9cf36141e"
  next="2005/05/5ec037d0731d72daab5cb2759565293d"
  prev-in-thread="2005/05/f8b848426e6b4dc35e7b225e865f69ff"
  prev-thread="2005/05/673536cfea964e1a6113b5a44033866d"
  next-thread="2005/05/428d4fa76763d222dd5a06d729908ab9"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Renaming structures during inclusions?">
<msg 
  url="2005/05/4d2ef87a667ec8c5e2fc34351c0bf627"
  from="Markus Mottl &lt;markus.mottl@g...&gt;"
  author="Markus Mottl"
  date="2005-05-11T15:44:17"
  subject="Renaming structures during inclusions?">
<msg 
  url="2005/05/7ee13064bc1230e05568f0365c62440b"
  from="Christophe TROESTLER &lt;debian00@t...&gt;"
  author="Christophe TROESTLER"
  date="2005-05-11T16:33:34"
  subject="Re: [Caml-list] Renaming structures during inclusions?">
<msg 
  url="2005/05/37b42687d04995fbcb5062ee307bedae"
  from="Andreas Rossberg &lt;rossberg@p...&gt;"
  author="Andreas Rossberg"
  date="2005-05-11T17:12:04"
  subject="Re: [Caml-list] Renaming structures during inclusions?">
<msg 
  url="2005/05/3abc8201379e2ef20e8b76b1b198d8aa"
  from="Markus Mottl &lt;markus.mottl@g...&gt;"
  author="Markus Mottl"
  date="2005-05-11T18:02:39"
  subject="Re: [Caml-list] Renaming structures during inclusions?">
<msg 
  url="2005/05/0d29d4a050051c575f2b0806b9409976"
  from="Andreas Rossberg &lt;rossberg@p...&gt;"
  author="Andreas Rossberg"
  date="2005-05-12T14:24:54"
  subject="Re: [Caml-list] Renaming structures during inclusions?">
</msg>
</msg>
<msg 
  url="2005/05/32852c0e9441fd5cacc1b63046dc78af"
  from="Christophe TROESTLER &lt;debian00@t...&gt;"
  author="Christophe TROESTLER"
  date="2005-05-11T18:16:32"
  subject="Re: [Caml-list] Renaming structures during inclusions?">
</msg>
</msg>
</msg>
<msg 
  url="2005/05/13030773278c40d6367360759638756e"
  from="Jacques Garrigue &lt;garrigue@m...&gt;"
  author="Jacques Garrigue"
  date="2005-05-12T01:25:05"
  subject="Re: [Caml-list] Renaming structures during inclusions?">
<msg 
  url="2005/05/f21910b0fdba032abfe6aae9cf36141e"
  from="Markus Mottl &lt;markus.mottl@g...&gt;"
  author="Markus Mottl"
  date="2005-05-12T17:10:01"
  subject="[Caml-list] Renaming structures during inclusions?">
</msg>
</msg>
<msg 
  url="2005/05/f8b848426e6b4dc35e7b225e865f69ff"
  from="Norman Ramsey &lt;nr@e...&gt;"
  author="Norman Ramsey"
  date="2005-05-12T15:26:35"
  subject="Re: [Caml-list] Renaming structures during inclusions? ">
</msg>
<msg 
  url="2005/05/7982251841eb7d842da9dfde066e3729"
  from="Aleksey Nogin &lt;nogin@c...&gt;"
  author="Aleksey Nogin"
  date="2005-05-12T20:02:20"
  subject="Re: [Caml-list] Renaming structures during inclusions?">
</msg>
</msg>
</thread>

<contents>
On 11.05.2005 08:44, Markus Mottl wrote:

&gt; The only solution that seems to make sense and does not impose
&gt; excessive work on the user is, IMHO, to provide for a facility to
&gt; rename types and modules, e.g. maybe something like:
&gt; 
&gt; ----------------------------------------------
&gt; module M = struct
&gt;   include M1
&gt;     with type t as m1_t
&gt;     with module Std as M1Std
&gt; 
&gt;   include M2
&gt;     with type t as m2_t
&gt;     with module Std as M2Std
&gt; 
&gt;   module Std = struct
&gt;     include M1Std
&gt;     include M2Std
&gt;   end
&gt; end
&gt; ----------------------------------------------

I would like to second this request. Currently, including several 
modules that share some structure is impossible and requires giving 
separate names for all the shared fields, with can be very painful. The 
"with" renaming seems simple enough and AFAICT would not break anything.

-- 
Aleksey Nogin

Home Page: http://nogin.org/
E-Mail: nogin@cs.caltech.edu (office), aleksey@nogin.org (personal)
Office: Moore 04, tel: (626) 395-2200

</contents>

</message>

